結果

問題 No.1003 サイコロの実装 (1)
ユーザー 37zigen37zigen
提出日時 2020-03-06 15:31:03
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 4,123 ms
コンパイル使用メモリ 71,740 KB
実行使用メモリ 58,020 KB
最終ジャッジ日時 2023-08-04 06:24:38
合計ジャッジ時間 9,171 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
56,000 KB
testcase_01 AC 119 ms
55,928 KB
testcase_02 AC 117 ms
55,588 KB
testcase_03 AC 117 ms
55,432 KB
testcase_04 AC 120 ms
56,228 KB
testcase_05 AC 115 ms
56,264 KB
testcase_06 AC 118 ms
56,140 KB
testcase_07 AC 119 ms
56,096 KB
testcase_08 AC 118 ms
55,668 KB
testcase_09 AC 120 ms
55,740 KB
testcase_10 AC 123 ms
56,312 KB
testcase_11 AC 121 ms
55,592 KB
testcase_12 AC 121 ms
55,796 KB
testcase_13 AC 118 ms
56,164 KB
testcase_14 AC 118 ms
55,828 KB
testcase_15 AC 120 ms
55,732 KB
testcase_16 AC 115 ms
55,904 KB
testcase_17 AC 115 ms
56,300 KB
testcase_18 AC 115 ms
55,856 KB
testcase_19 AC 121 ms
56,072 KB
testcase_20 AC 116 ms
56,296 KB
testcase_21 AC 117 ms
58,020 KB
testcase_22 AC 121 ms
55,864 KB
testcase_23 AC 118 ms
56,164 KB
testcase_24 AC 119 ms
56,164 KB
testcase_25 AC 116 ms
56,284 KB
testcase_26 AC 117 ms
55,852 KB
testcase_27 AC 117 ms
55,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		new Main().run();
	}
	
	void run() {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		System.out.println(N%6==0?"Yes":"No");
	}
}
0