結果

問題 No.311 z in FizzBuzzString
ユーザー GchansanjouGchansanjou
提出日時 2018-02-23 22:34:59
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 667 bytes
コンパイル時間 3,124 ms
コンパイル使用メモリ 75,556 KB
実行使用メモリ 53,336 KB
最終ジャッジ日時 2023-10-25 02:53:19
合計ジャッジ時間 4,289 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
51,288 KB
testcase_01 AC 52 ms
51,340 KB
testcase_02 AC 52 ms
53,328 KB
testcase_03 WA -
testcase_04 AC 52 ms
52,404 KB
testcase_05 WA -
testcase_06 AC 51 ms
53,332 KB
testcase_07 AC 52 ms
53,332 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 52 ms
52,364 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());
			long ans = 0;
			ans = ans + 2 * length/5;
			ans = ans + 2 * length/3;
			System.out.println(ans);
		} catch (NumberFormatException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}
	}

}
0