結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー kou6839kou6839
提出日時 2015-05-23 17:44:22
言語 Java19
(openjdk 21)
結果
AC  
実行時間 126 ms / 5,000 ms
コード長 509 bytes
コンパイル時間 2,179 ms
コンパイル使用メモリ 71,992 KB
実行使用メモリ 56,416 KB
最終ジャッジ日時 2023-09-20 10:54:33
合計ジャッジ時間 3,852 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,860 KB
testcase_01 AC 120 ms
55,808 KB
testcase_02 AC 120 ms
56,088 KB
testcase_03 AC 121 ms
55,864 KB
testcase_04 AC 121 ms
55,848 KB
testcase_05 AC 122 ms
56,416 KB
testcase_06 AC 124 ms
55,740 KB
testcase_07 AC 126 ms
56,032 KB
testcase_08 AC 126 ms
55,552 KB
testcase_09 AC 122 ms
54,136 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 P = sc.nextInt();//素数サイコロ
		int C = sc.nextInt();//合成数サイコロ

		int[] dice1 = {2,3,5,7,11,13};
		int[] dice2 = {4,6,8,9,10,12};
		double aa = (2+3+5+7+11+13)*1.0/6;
		double bb = (4+6+8+9+10+12)*1.0/6;
		System.out.println(Math.pow(aa, P)*Math.pow(bb, C));

	}
}
0