結果

問題 No.1003 サイコロの実装 (1)
ユーザー Yosuke YamaguchiYosuke Yamaguchi
提出日時 2021-01-12 22:11:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 424 bytes
コンパイル時間 3,759 ms
コンパイル使用メモリ 75,064 KB
実行使用メモリ 54,368 KB
最終ジャッジ日時 2024-05-01 08:37:47
合計ジャッジ時間 8,052 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
53,800 KB
testcase_01 AC 134 ms
54,112 KB
testcase_02 AC 136 ms
54,112 KB
testcase_03 AC 122 ms
54,084 KB
testcase_04 AC 123 ms
53,816 KB
testcase_05 AC 125 ms
54,000 KB
testcase_06 AC 125 ms
53,772 KB
testcase_07 AC 123 ms
54,100 KB
testcase_08 AC 125 ms
54,068 KB
testcase_09 AC 124 ms
53,952 KB
testcase_10 AC 123 ms
54,060 KB
testcase_11 AC 121 ms
53,808 KB
testcase_12 AC 120 ms
54,012 KB
testcase_13 AC 124 ms
54,168 KB
testcase_14 AC 119 ms
54,056 KB
testcase_15 AC 120 ms
54,368 KB
testcase_16 AC 118 ms
54,216 KB
testcase_17 AC 122 ms
53,828 KB
testcase_18 AC 121 ms
54,212 KB
testcase_19 AC 123 ms
54,104 KB
testcase_20 AC 124 ms
53,868 KB
testcase_21 AC 120 ms
53,916 KB
testcase_22 AC 126 ms
53,960 KB
testcase_23 AC 119 ms
54,072 KB
testcase_24 AC 124 ms
53,980 KB
testcase_25 AC 125 ms
53,952 KB
testcase_26 AC 124 ms
53,972 KB
testcase_27 AC 128 ms
54,048 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

// https://yukicoder.me/problems/no/1003
public class DiceCreate1003 {
  public static void main(String[] args) {
    // 標準入力から読み込む際に、Scan
    Scanner sc = new Scanner(System.in);

    // String 1つ分を読み込む
    int n = Integer.parseInt(sc.next());

    if(n % 6 == 0) {
      System.out.println("Yes");
    }else {
      System.out.println("No");
    }
  }
}
0