結果

問題 No.211 素数サイコロと合成数サイコロ (1)
ユーザー fal_rndfal_rnd
提出日時 2017-08-08 18:09:17
言語 Java21
(openjdk 21)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 738 bytes
コンパイル時間 3,187 ms
コンパイル使用メモリ 79,644 KB
実行使用メモリ 56,616 KB
最終ジャッジ日時 2023-08-26 18:12:38
合計ジャッジ時間 8,137 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
55,536 KB
testcase_01 AC 111 ms
56,136 KB
testcase_02 AC 109 ms
55,788 KB
testcase_03 AC 110 ms
56,084 KB
testcase_04 AC 108 ms
55,556 KB
testcase_05 AC 108 ms
55,748 KB
testcase_06 AC 107 ms
55,424 KB
testcase_07 AC 108 ms
55,592 KB
testcase_08 AC 107 ms
55,516 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 109 ms
53,536 KB
testcase_12 AC 112 ms
55,624 KB
testcase_13 AC 110 ms
55,684 KB
testcase_14 AC 111 ms
53,880 KB
testcase_15 AC 111 ms
55,744 KB
testcase_16 AC 113 ms
55,640 KB
testcase_17 AC 110 ms
55,616 KB
testcase_18 AC 110 ms
55,572 KB
testcase_19 AC 109 ms
55,992 KB
testcase_20 AC 109 ms
55,920 KB
testcase_21 AC 111 ms
55,668 KB
testcase_22 AC 114 ms
53,660 KB
testcase_23 AC 110 ms
55,536 KB
testcase_24 AC 111 ms
55,536 KB
testcase_25 AC 111 ms
56,616 KB
testcase_26 AC 110 ms
55,876 KB
testcase_27 AC 109 ms
55,864 KB
testcase_28 AC 110 ms
55,760 KB
testcase_29 AC 108 ms
56,296 KB
testcase_30 AC 108 ms
55,460 KB
testcase_31 AC 111 ms
55,488 KB
testcase_32 AC 110 ms
55,616 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(k<=r.length?r[k]:0);
	}
}
0