結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー Mcpu3Mcpu3
提出日時 2018-09-01 17:48:39
言語 Java21
(openjdk 21)
結果
AC  
実行時間 158 ms / 5,000 ms
コード長 250 bytes
コンパイル時間 8,828 ms
コンパイル使用メモリ 79,912 KB
実行使用メモリ 57,304 KB
最終ジャッジ日時 2023-10-19 14:14:56
合計ジャッジ時間 4,723 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 155 ms
57,300 KB
testcase_01 AC 156 ms
57,296 KB
testcase_02 AC 154 ms
57,300 KB
testcase_03 AC 151 ms
57,304 KB
testcase_04 AC 155 ms
57,292 KB
testcase_05 AC 155 ms
57,300 KB
testcase_06 AC 153 ms
57,300 KB
testcase_07 AC 158 ms
57,304 KB
testcase_08 AC 157 ms
57,300 KB
testcase_09 AC 156 ms
57,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		double p=sc.nextDouble(),c=sc.nextDouble();
		sc.close();
		System.out.print(Math.pow(41/6., p)*Math.pow(49/6., c));
	}
}
0