結果

問題 No.1003 サイコロの実装 (1)
ユーザー 37zigen37zigen
提出日時 2020-03-06 18:57:21
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 304 bytes
コンパイル時間 4,527 ms
コンパイル使用メモリ 74,092 KB
実行使用メモリ 56,212 KB
最終ジャッジ日時 2023-08-04 06:24:10
合計ジャッジ時間 9,428 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
55,680 KB
testcase_01 AC 130 ms
55,972 KB
testcase_02 AC 127 ms
56,068 KB
testcase_03 AC 126 ms
55,668 KB
testcase_04 AC 126 ms
55,948 KB
testcase_05 AC 127 ms
56,056 KB
testcase_06 AC 129 ms
55,516 KB
testcase_07 AC 127 ms
55,784 KB
testcase_08 AC 126 ms
55,656 KB
testcase_09 AC 126 ms
55,788 KB
testcase_10 AC 126 ms
55,640 KB
testcase_11 AC 128 ms
55,976 KB
testcase_12 AC 128 ms
56,212 KB
testcase_13 AC 127 ms
55,664 KB
testcase_14 AC 125 ms
55,580 KB
testcase_15 AC 125 ms
56,024 KB
testcase_16 AC 124 ms
56,184 KB
testcase_17 AC 125 ms
55,996 KB
testcase_18 AC 124 ms
55,824 KB
testcase_19 AC 127 ms
56,016 KB
testcase_20 AC 125 ms
55,784 KB
testcase_21 AC 125 ms
55,748 KB
testcase_22 AC 125 ms
55,892 KB
testcase_23 AC 129 ms
55,492 KB
testcase_24 AC 126 ms
55,880 KB
testcase_25 AC 127 ms
55,940 KB
testcase_26 AC 128 ms
55,780 KB
testcase_27 AC 127 ms
56,040 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();
		if(!(1<=N&&N<=1<<16))throw new AssertionError();
		System.out.println(N%6==0?"Yes":"No");
	}
}
0