結果

問題 No.311 z in FizzBuzzString
ユーザー hikari2004hikari2004
提出日時 2016-04-20 09:47:09
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 261 bytes
コンパイル時間 3,159 ms
コンパイル使用メモリ 74,168 KB
実行使用メモリ 57,952 KB
最終ジャッジ日時 2023-10-25 02:43:20
合計ジャッジ時間 5,170 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No311 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		
		int fizz = n / 3;
		int buzz = n / 5;
		
		System.out.println(2 * (fizz * buzz));
		sc.close();
	}

}
0