結果

問題 No.1003 サイコロの実装 (1)
ユーザー usa1104_1224usa1104_1224
提出日時 2020-03-06 21:29:26
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 309 bytes
コンパイル時間 2,561 ms
コンパイル使用メモリ 74,956 KB
実行使用メモリ 46,684 KB
最終ジャッジ日時 2024-04-22 05:04:43
合計ジャッジ時間 7,017 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
43,056 KB
testcase_01 AC 116 ms
45,028 KB
testcase_02 AC 116 ms
43,076 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 127 ms
46,368 KB
testcase_08 AC 129 ms
46,388 KB
testcase_09 AC 129 ms
46,008 KB
testcase_10 AC 129 ms
46,524 KB
testcase_11 AC 131 ms
46,136 KB
testcase_12 AC 131 ms
44,288 KB
testcase_13 AC 129 ms
46,264 KB
testcase_14 AC 118 ms
43,060 KB
testcase_15 AC 128 ms
46,320 KB
testcase_16 AC 117 ms
43,296 KB
testcase_17 AC 129 ms
46,152 KB
testcase_18 AC 129 ms
44,240 KB
testcase_19 AC 117 ms
45,188 KB
testcase_20 AC 133 ms
44,396 KB
testcase_21 AC 129 ms
46,348 KB
testcase_22 AC 130 ms
44,356 KB
testcase_23 AC 129 ms
46,684 KB
testcase_24 AC 115 ms
43,060 KB
testcase_25 AC 127 ms
46,128 KB
testcase_26 AC 128 ms
44,228 KB
testcase_27 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main {
	public static void main(String args[] ){
		Scanner sc =new Scanner(System.in);
		int N = sc.nextInt();
		if(N<=6) {
			System.out.println("Yes");
		}else {
			if(N % 6 == 0) {
				System.out.println("Yes");
			}else {
				System.out.println("No");
			}
		}
	}

}
0