結果

問題 No.1003 サイコロの実装 (1)
ユーザー ks2mks2m
提出日時 2020-03-06 22:22:38
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 2,000 ms
コード長 238 bytes
コンパイル時間 3,517 ms
コンパイル使用メモリ 72,096 KB
実行使用メモリ 56,156 KB
最終ジャッジ日時 2023-08-04 11:07:53
合計ジャッジ時間 8,580 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
53,896 KB
testcase_01 AC 128 ms
55,772 KB
testcase_02 AC 128 ms
56,040 KB
testcase_03 AC 128 ms
56,156 KB
testcase_04 AC 128 ms
56,044 KB
testcase_05 AC 127 ms
56,064 KB
testcase_06 AC 128 ms
55,852 KB
testcase_07 AC 127 ms
53,912 KB
testcase_08 AC 131 ms
55,696 KB
testcase_09 AC 128 ms
55,880 KB
testcase_10 AC 129 ms
55,844 KB
testcase_11 AC 127 ms
55,660 KB
testcase_12 AC 127 ms
55,548 KB
testcase_13 AC 128 ms
55,700 KB
testcase_14 AC 126 ms
55,440 KB
testcase_15 AC 125 ms
55,696 KB
testcase_16 AC 127 ms
55,372 KB
testcase_17 AC 126 ms
55,696 KB
testcase_18 AC 127 ms
55,692 KB
testcase_19 AC 127 ms
55,660 KB
testcase_20 AC 129 ms
55,668 KB
testcase_21 AC 130 ms
55,956 KB
testcase_22 AC 127 ms
56,028 KB
testcase_23 AC 127 ms
56,084 KB
testcase_24 AC 129 ms
55,628 KB
testcase_25 AC 128 ms
55,708 KB
testcase_26 AC 129 ms
56,044 KB
testcase_27 AC 127 ms
55,660 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		sc.close();

		System.out.println(n % 6 == 0 ? "Yes" : "No");
	}
}
0