結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー rf141rf141
提出日時 2015-07-24 21:58:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 5,000 ms
コード長 361 bytes
コンパイル時間 3,710 ms
コンパイル使用メモリ 72,364 KB
実行使用メモリ 56,108 KB
最終ジャッジ日時 2023-09-22 22:21:23
合計ジャッジ時間 5,147 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
55,948 KB
testcase_01 AC 135 ms
55,816 KB
testcase_02 AC 134 ms
56,048 KB
testcase_03 AC 134 ms
55,812 KB
testcase_04 AC 135 ms
55,680 KB
testcase_05 AC 134 ms
55,992 KB
testcase_06 AC 134 ms
55,896 KB
testcase_07 AC 133 ms
56,108 KB
testcase_08 AC 133 ms
55,948 KB
testcase_09 AC 137 ms
56,092 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class preNum{
    public static void main(String... args){
        Scanner s = new Scanner(System.in);
        double P = s.nextDouble();
        double C = s.nextDouble();
        double pre=(double)(2+3+5+7+11+13)/(double)6,mix=(double)(4+6+8+9+10+12)/(double)6;
         System.out.println(Math.pow(pre,P)*Math.pow(mix,C));
    }
}
0