結果

問題 No.211 素数サイコロと合成数サイコロ (1)
ユーザー ffmm00ffmm00
提出日時 2015-06-01 17:33:51
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 432 bytes
コンパイル時間 3,741 ms
コンパイル使用メモリ 72,120 KB
実行使用メモリ 58,012 KB
最終ジャッジ日時 2023-09-20 18:20:22
合計ジャッジ時間 9,234 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
56,280 KB
testcase_01 AC 120 ms
55,804 KB
testcase_02 WA -
testcase_03 AC 121 ms
56,092 KB
testcase_04 AC 121 ms
56,000 KB
testcase_05 AC 122 ms
56,012 KB
testcase_06 AC 122 ms
56,292 KB
testcase_07 AC 122 ms
56,048 KB
testcase_08 WA -
testcase_09 AC 119 ms
53,640 KB
testcase_10 AC 122 ms
55,916 KB
testcase_11 AC 122 ms
55,668 KB
testcase_12 AC 125 ms
56,020 KB
testcase_13 AC 122 ms
55,860 KB
testcase_14 AC 122 ms
55,936 KB
testcase_15 AC 123 ms
56,268 KB
testcase_16 AC 122 ms
56,344 KB
testcase_17 WA -
testcase_18 AC 122 ms
56,340 KB
testcase_19 AC 123 ms
56,128 KB
testcase_20 AC 121 ms
55,764 KB
testcase_21 AC 121 ms
55,816 KB
testcase_22 AC 123 ms
57,628 KB
testcase_23 AC 122 ms
55,844 KB
testcase_24 AC 121 ms
56,028 KB
testcase_25 AC 123 ms
56,568 KB
testcase_26 AC 120 ms
56,580 KB
testcase_27 AC 120 ms
55,948 KB
testcase_28 AC 120 ms
55,724 KB
testcase_29 AC 119 ms
53,560 KB
testcase_30 AC 122 ms
56,056 KB
testcase_31 AC 122 ms
56,048 KB
testcase_32 AC 121 ms
56,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class N211 {

	public static void main(String[] args) {
		Scanner sca = new Scanner(System.in);
		int K = sca.nextInt();
		int[] so = { 2, 3, 5, 7, 11, 13 };
		int[] go = { 4, 6, 8, 9, 10, 12 };

		for (int i = 0; i < 6; i++) {
			for (int j = 0; j < 6; j++) {
				if (so[i] * go[j] == K) {
					System.out.println(0.0277777777777777778);
					return;
				}
			}
		}

		System.out.println(0);
	}

}
0