結果

問題 No.211 素数サイコロと合成数サイコロ (1)
ユーザー fal_rndfal_rnd
提出日時 2017-08-08 18:08:29
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 724 bytes
コンパイル時間 2,146 ms
コンパイル使用メモリ 81,872 KB
実行使用メモリ 54,232 KB
最終ジャッジ日時 2024-04-20 05:12:50
合計ジャッジ時間 7,078 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
53,784 KB
testcase_01 AC 121 ms
54,156 KB
testcase_02 AC 120 ms
53,876 KB
testcase_03 AC 119 ms
53,764 KB
testcase_04 AC 108 ms
52,992 KB
testcase_05 AC 119 ms
53,952 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 AC 119 ms
54,020 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 122 ms
54,052 KB
testcase_12 AC 120 ms
54,120 KB
testcase_13 AC 120 ms
53,972 KB
testcase_14 RE -
testcase_15 RE -
testcase_16 AC 121 ms
53,828 KB
testcase_17 AC 124 ms
52,892 KB
testcase_18 AC 120 ms
53,732 KB
testcase_19 AC 119 ms
53,976 KB
testcase_20 AC 109 ms
52,976 KB
testcase_21 AC 117 ms
53,392 KB
testcase_22 AC 109 ms
52,816 KB
testcase_23 AC 118 ms
54,136 KB
testcase_24 AC 119 ms
53,968 KB
testcase_25 AC 120 ms
52,796 KB
testcase_26 RE -
testcase_27 AC 118 ms
52,868 KB
testcase_28 RE -
testcase_29 RE -
testcase_30 RE -
testcase_31 AC 107 ms
53,012 KB
testcase_32 AC 107 ms
53,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.stream.IntStream;

public class Main{
	static Scanner s=new Scanner(System.in);
	static int getInt(){return Integer.parseInt(s.next());}
	static IntStream REPS(int v){return IntStream.range(0,v);}
	static IntStream REPS(int l,int r){return IntStream.rangeClosed(l,r);}
	static IntStream INS(int n) {return REPS(n).map(i->getInt());}
	static class Pair<T,U>{
		T l;U r;
		Pair(T L,U R){l=L;r=R;}
		T getL(){return l;}
		U getR(){return r;}
	}

	public static void main(String[]$){
		int k=getInt();
		double r[]=new double[13*12+1];
		int[]p={2,3,5,7,11,13},c={4,6,8,9,10,12};
		for(int i=0;i<6;++i)
			for(int j=0;j<6;++j)
				r[p[i]*c[j]]+=1.0/36;
		System.out.println(r[k]);
	}
}
0