結果

問題 No.211 素数サイコロと合成数サイコロ (1)
ユーザー kou6839kou6839
提出日時 2015-05-23 17:34:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 1,000 ms
コード長 454 bytes
コンパイル時間 2,134 ms
コンパイル使用メモリ 71,460 KB
実行使用メモリ 57,696 KB
最終ジャッジ日時 2023-09-08 05:08:56
合計ジャッジ時間 7,629 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,360 KB
testcase_01 AC 123 ms
55,736 KB
testcase_02 AC 123 ms
56,336 KB
testcase_03 AC 124 ms
55,932 KB
testcase_04 AC 123 ms
56,200 KB
testcase_05 AC 121 ms
53,660 KB
testcase_06 AC 122 ms
55,728 KB
testcase_07 AC 123 ms
55,516 KB
testcase_08 AC 127 ms
55,516 KB
testcase_09 AC 124 ms
56,204 KB
testcase_10 AC 124 ms
56,040 KB
testcase_11 AC 124 ms
56,032 KB
testcase_12 AC 125 ms
57,696 KB
testcase_13 AC 125 ms
55,564 KB
testcase_14 AC 123 ms
54,212 KB
testcase_15 AC 123 ms
55,572 KB
testcase_16 AC 125 ms
56,168 KB
testcase_17 AC 125 ms
56,336 KB
testcase_18 AC 124 ms
56,040 KB
testcase_19 AC 124 ms
55,836 KB
testcase_20 AC 124 ms
55,536 KB
testcase_21 AC 124 ms
55,700 KB
testcase_22 AC 123 ms
55,856 KB
testcase_23 AC 123 ms
55,928 KB
testcase_24 AC 124 ms
55,780 KB
testcase_25 AC 123 ms
55,564 KB
testcase_26 AC 124 ms
55,844 KB
testcase_27 AC 123 ms
55,764 KB
testcase_28 AC 124 ms
55,780 KB
testcase_29 AC 124 ms
56,028 KB
testcase_30 AC 124 ms
55,956 KB
testcase_31 AC 121 ms
55,748 KB
testcase_32 AC 121 ms
54,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main {
	static int mod = 1000000007;

	public static void main(String[] args){
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int[] dice1 = {2,3,5,7,11,13};
		int[] dice2 = {4,6,8,9,10,12};
		int[] prob =new int[1000];
		for(int i=0;i<6;i++){
			for(int j=0;j<6;j++){
				prob[dice1[i]*dice2[j]]++;
			}
		}
		System.out.println(prob[sc.nextInt()]*1.0/36);
	}
}
0