結果

問題 No.1003 サイコロの実装 (1)
ユーザー waganecowaganeco
提出日時 2020-03-13 10:07:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 3,137 ms
コンパイル使用メモリ 78,388 KB
実行使用メモリ 54,140 KB
最終ジャッジ日時 2024-05-01 11:53:07
合計ジャッジ時間 6,989 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
52,632 KB
testcase_01 AC 100 ms
53,952 KB
testcase_02 AC 100 ms
52,824 KB
testcase_03 AC 99 ms
52,724 KB
testcase_04 AC 111 ms
53,860 KB
testcase_05 AC 97 ms
52,884 KB
testcase_06 AC 106 ms
53,672 KB
testcase_07 AC 108 ms
54,092 KB
testcase_08 AC 109 ms
53,984 KB
testcase_09 AC 108 ms
53,968 KB
testcase_10 AC 109 ms
53,764 KB
testcase_11 AC 97 ms
52,572 KB
testcase_12 AC 109 ms
53,760 KB
testcase_13 AC 110 ms
53,900 KB
testcase_14 AC 97 ms
52,924 KB
testcase_15 AC 111 ms
54,032 KB
testcase_16 AC 109 ms
53,772 KB
testcase_17 AC 113 ms
53,804 KB
testcase_18 AC 122 ms
53,844 KB
testcase_19 AC 117 ms
53,656 KB
testcase_20 AC 106 ms
53,244 KB
testcase_21 AC 111 ms
54,140 KB
testcase_22 AC 100 ms
52,800 KB
testcase_23 AC 99 ms
53,004 KB
testcase_24 AC 110 ms
53,996 KB
testcase_25 AC 114 ms
53,948 KB
testcase_26 AC 120 ms
53,700 KB
testcase_27 AC 111 ms
53,764 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No1003 {

	public static void main(String[] args) {
		
		int n;
		Scanner sc = new Scanner(System.in);
		n = Integer.parseInt(sc.next());
		sc.close();
		
		if (n % 6 == 0) {
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
		
	}

}
0