結果

問題 No.1003 サイコロの実装 (1)
ユーザー tentententen
提出日時 2020-08-24 17:04:42
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 300 bytes
コンパイル時間 1,947 ms
コンパイル使用メモリ 74,172 KB
実行使用メモリ 41,376 KB
最終ジャッジ日時 2024-04-24 03:35:09
合計ジャッジ時間 6,007 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
40,112 KB
testcase_01 AC 114 ms
41,348 KB
testcase_02 AC 115 ms
41,172 KB
testcase_03 AC 103 ms
40,100 KB
testcase_04 AC 115 ms
41,340 KB
testcase_05 AC 109 ms
40,000 KB
testcase_06 AC 114 ms
41,364 KB
testcase_07 AC 115 ms
41,152 KB
testcase_08 AC 112 ms
41,172 KB
testcase_09 AC 110 ms
41,256 KB
testcase_10 AC 113 ms
41,372 KB
testcase_11 AC 105 ms
40,220 KB
testcase_12 AC 111 ms
41,236 KB
testcase_13 AC 102 ms
40,256 KB
testcase_14 AC 110 ms
41,264 KB
testcase_15 AC 100 ms
40,268 KB
testcase_16 AC 101 ms
40,216 KB
testcase_17 AC 97 ms
39,580 KB
testcase_18 AC 117 ms
41,252 KB
testcase_19 AC 111 ms
41,372 KB
testcase_20 AC 111 ms
41,376 KB
testcase_21 AC 115 ms
41,308 KB
testcase_22 AC 115 ms
41,352 KB
testcase_23 AC 113 ms
41,020 KB
testcase_24 AC 115 ms
41,372 KB
testcase_25 AC 116 ms
41,212 KB
testcase_26 AC 121 ms
41,100 KB
testcase_27 AC 98 ms
39,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong();
        if (n % 6 == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}
0