結果

問題 No.211 素数サイコロと合成数サイコロ (1)
ユーザー spaciaspacia
提出日時 2015-12-23 14:00:41
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 544 bytes
コンパイル時間 2,194 ms
コンパイル使用メモリ 75,036 KB
実行使用メモリ 53,752 KB
最終ジャッジ日時 2023-10-19 01:45:58
合計ジャッジ時間 5,589 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
53,464 KB
testcase_01 AC 57 ms
53,460 KB
testcase_02 AC 55 ms
52,408 KB
testcase_03 AC 56 ms
53,492 KB
testcase_04 AC 56 ms
53,496 KB
testcase_05 AC 56 ms
53,492 KB
testcase_06 RE -
testcase_07 AC 56 ms
52,340 KB
testcase_08 AC 57 ms
53,492 KB
testcase_09 AC 58 ms
52,376 KB
testcase_10 AC 57 ms
52,508 KB
testcase_11 AC 57 ms
53,480 KB
testcase_12 AC 56 ms
53,452 KB
testcase_13 AC 56 ms
53,456 KB
testcase_14 AC 57 ms
53,464 KB
testcase_15 AC 57 ms
53,472 KB
testcase_16 AC 56 ms
53,472 KB
testcase_17 AC 55 ms
51,448 KB
testcase_18 AC 56 ms
53,488 KB
testcase_19 AC 56 ms
53,472 KB
testcase_20 AC 56 ms
52,348 KB
testcase_21 AC 56 ms
52,380 KB
testcase_22 AC 57 ms
53,456 KB
testcase_23 AC 57 ms
53,456 KB
testcase_24 AC 56 ms
53,456 KB
testcase_25 AC 58 ms
52,368 KB
testcase_26 AC 57 ms
52,544 KB
testcase_27 AC 56 ms
52,404 KB
testcase_28 AC 58 ms
52,368 KB
testcase_29 AC 57 ms
52,368 KB
testcase_30 AC 56 ms
53,456 KB
testcase_31 AC 57 ms
53,456 KB
testcase_32 AC 56 ms
53,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;

class Main211 {
	
	public static void out (Object o) {
		System.out.println(o);
	}
	
	public static void main (String[] args) throws IOException {
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		
		int k = Integer.parseInt(br.readLine());
		int max = 200;
		int[] sum = new int[max];
		int[] dice1 = {2,3,5,7,11,13};
		int[] dice2 = {4,6,8,9,10,12};
		
		for (int d1 : dice1) {
			for (int d2 : dice2) {
				sum[d1 * d2]++;
			}
		}
		
		out((double)sum[k] / 36);
		
	}
}
0