結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー happy-beanshappy-beans
提出日時 2017-03-15 03:49:13
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 291 bytes
コンパイル時間 3,896 ms
コンパイル使用メモリ 72,312 KB
実行使用メモリ 56,192 KB
最終ジャッジ日時 2023-09-12 12:24:38
合計ジャッジ時間 5,040 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
56,144 KB
testcase_01 AC 123 ms
56,192 KB
testcase_02 AC 122 ms
55,568 KB
testcase_03 AC 123 ms
55,988 KB
testcase_04 AC 123 ms
55,592 KB
testcase_05 AC 122 ms
55,692 KB
testcase_06 AC 123 ms
56,060 KB
testcase_07 AC 122 ms
56,168 KB
testcase_08 AC 121 ms
56,064 KB
testcase_09 AC 122 ms
56,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No212 {

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

}
0