結果

問題 No.211 素数サイコロと合成数サイコロ (1)
ユーザー kou6839kou6839
提出日時 2015-05-23 17:33:16
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 457 bytes
コンパイル時間 1,941 ms
コンパイル使用メモリ 71,740 KB
実行使用メモリ 58,048 KB
最終ジャッジ日時 2023-09-20 10:54:26
合計ジャッジ時間 7,918 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,820 KB
testcase_01 AC 123 ms
55,812 KB
testcase_02 AC 122 ms
56,100 KB
testcase_03 AC 120 ms
56,008 KB
testcase_04 AC 121 ms
56,108 KB
testcase_05 AC 122 ms
55,844 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 AC 122 ms
56,332 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 121 ms
55,868 KB
testcase_12 AC 121 ms
55,556 KB
testcase_13 AC 120 ms
55,704 KB
testcase_14 RE -
testcase_15 RE -
testcase_16 AC 122 ms
55,984 KB
testcase_17 AC 121 ms
56,224 KB
testcase_18 AC 120 ms
55,472 KB
testcase_19 AC 122 ms
56,200 KB
testcase_20 AC 123 ms
55,872 KB
testcase_21 AC 122 ms
56,036 KB
testcase_22 AC 121 ms
55,992 KB
testcase_23 AC 123 ms
55,832 KB
testcase_24 AC 126 ms
55,600 KB
testcase_25 AC 122 ms
56,012 KB
testcase_26 RE -
testcase_27 AC 125 ms
56,404 KB
testcase_28 RE -
testcase_29 RE -
testcase_30 RE -
testcase_31 AC 122 ms
55,668 KB
testcase_32 AC 122 ms
55,820 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[13*12+1];
		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