結果

問題 No.311 z in FizzBuzzString
ユーザー hikari2004hikari2004
提出日時 2016-04-20 10:05:13
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 1,500 ms
コード長 260 bytes
コンパイル時間 3,410 ms
コンパイル使用メモリ 77,164 KB
実行使用メモリ 57,700 KB
最終ジャッジ日時 2023-10-25 02:43:26
合計ジャッジ時間 5,611 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
57,580 KB
testcase_01 AC 134 ms
57,272 KB
testcase_02 AC 132 ms
57,468 KB
testcase_03 AC 134 ms
57,700 KB
testcase_04 AC 132 ms
57,568 KB
testcase_05 AC 133 ms
57,660 KB
testcase_06 AC 134 ms
57,464 KB
testcase_07 AC 133 ms
57,516 KB
testcase_08 AC 133 ms
57,552 KB
testcase_09 AC 131 ms
57,460 KB
testcase_10 AC 130 ms
57,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No311 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long n = sc.nextLong();

		long fizz = n / 3;
		long buzz = n / 5;

		System.out.println(2 * (fizz + buzz));
		sc.close();
	}

}
0