結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー tentententen
提出日時 2020-10-15 19:42:15
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 244 bytes
コンパイル時間 2,266 ms
コンパイル使用メモリ 70,632 KB
実行使用メモリ 55,924 KB
最終ジャッジ日時 2023-09-28 01:17:25
合計ジャッジ時間 4,035 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,888 KB
testcase_01 AC 127 ms
55,924 KB
testcase_02 AC 125 ms
55,500 KB
testcase_03 AC 126 ms
55,748 KB
testcase_04 AC 126 ms
55,436 KB
testcase_05 AC 125 ms
55,732 KB
testcase_06 AC 127 ms
55,636 KB
testcase_07 AC 126 ms
55,728 KB
testcase_08 AC 129 ms
55,840 KB
testcase_09 AC 127 ms
55,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int p = sc.nextInt();
		int c = sc.nextInt();
		System.out.println(Math.pow(41 / 6.0, p) * Math.pow(49 / 6.0, c));
	}
}
0