結果

問題 No.311 z in FizzBuzzString
ユーザー GchansanjouGchansanjou
提出日時 2018-02-23 22:45:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 55 ms / 1,500 ms
コード長 614 bytes
コンパイル時間 3,041 ms
コンパイル使用メモリ 74,372 KB
実行使用メモリ 53,344 KB
最終ジャッジ日時 2023-10-25 02:53:21
合計ジャッジ時間 4,199 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
53,336 KB
testcase_01 AC 51 ms
53,332 KB
testcase_02 AC 52 ms
53,332 KB
testcase_03 AC 51 ms
53,336 KB
testcase_04 AC 51 ms
53,332 KB
testcase_05 AC 53 ms
53,328 KB
testcase_06 AC 53 ms
53,328 KB
testcase_07 AC 53 ms
53,276 KB
testcase_08 AC 55 ms
53,332 KB
testcase_09 AC 52 ms
53,344 KB
testcase_10 AC 52 ms
53,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukiCoder;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No00311 {

	public static void main(String[] args) {
		BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
		try {
			long length = Long.parseLong(bufferedReader.readLine());
			System.out.println((length/3 + length/5) * 2);
		} catch (NumberFormatException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}
	}

}
0