結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー k_kadorak_kadora
提出日時 2015-06-15 03:00:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 141 ms / 5,000 ms
コード長 355 bytes
コンパイル時間 3,412 ms
コンパイル使用メモリ 72,304 KB
実行使用メモリ 58,556 KB
最終ジャッジ日時 2023-09-21 02:06:46
合計ジャッジ時間 5,723 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
56,460 KB
testcase_01 AC 137 ms
56,288 KB
testcase_02 AC 141 ms
56,292 KB
testcase_03 AC 138 ms
56,584 KB
testcase_04 AC 141 ms
58,556 KB
testcase_05 AC 139 ms
56,028 KB
testcase_06 AC 136 ms
56,168 KB
testcase_07 AC 137 ms
56,172 KB
testcase_08 AC 137 ms
56,088 KB
testcase_09 AC 137 ms
55,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Yuki212{
	public static void main(String[] arg){
		Scanner sc = new Scanner(System.in);
		double p,c,pe,ce,res;
		p = sc.nextDouble();
		c = sc.nextDouble();
		pe = (double)(2+3+5+7+11+13)/(double)6;
		ce = (double)(4+6+8+9+10+12)/(double)6;
		res = (Math.pow(pe,p))*(Math.pow(ce,c));
		System.out.println(res);
	}
}
0