結果

問題 No.1003 サイコロの実装 (1)
ユーザー ks2mks2m
提出日時 2020-03-06 22:22:38
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 238 bytes
コンパイル時間 2,019 ms
コンパイル使用メモリ 74,384 KB
実行使用メモリ 41,252 KB
最終ジャッジ日時 2024-04-22 08:46:31
合計ジャッジ時間 6,385 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
40,976 KB
testcase_01 AC 103 ms
39,904 KB
testcase_02 AC 105 ms
40,392 KB
testcase_03 AC 109 ms
40,076 KB
testcase_04 AC 113 ms
40,716 KB
testcase_05 AC 108 ms
39,840 KB
testcase_06 AC 106 ms
40,428 KB
testcase_07 AC 109 ms
40,696 KB
testcase_08 AC 118 ms
41,252 KB
testcase_09 AC 112 ms
40,968 KB
testcase_10 AC 105 ms
39,872 KB
testcase_11 AC 114 ms
40,876 KB
testcase_12 AC 112 ms
41,232 KB
testcase_13 AC 114 ms
40,944 KB
testcase_14 AC 110 ms
40,724 KB
testcase_15 AC 110 ms
40,832 KB
testcase_16 AC 114 ms
40,760 KB
testcase_17 AC 111 ms
41,152 KB
testcase_18 AC 110 ms
41,144 KB
testcase_19 AC 113 ms
41,096 KB
testcase_20 AC 112 ms
40,836 KB
testcase_21 AC 105 ms
39,948 KB
testcase_22 AC 112 ms
41,076 KB
testcase_23 AC 103 ms
40,080 KB
testcase_24 AC 100 ms
40,068 KB
testcase_25 AC 103 ms
39,732 KB
testcase_26 AC 118 ms
41,020 KB
testcase_27 AC 116 ms
40,836 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