結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー tsunabittsunabit
提出日時 2020-03-16 17:36:28
言語 Java19
(openjdk 21)
結果
AC  
実行時間 118 ms / 5,000 ms
コード長 276 bytes
コンパイル時間 2,964 ms
コンパイル使用メモリ 71,724 KB
実行使用メモリ 56,724 KB
最終ジャッジ日時 2023-08-18 19:21:54
合計ジャッジ時間 5,075 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
55,824 KB
testcase_01 AC 108 ms
55,852 KB
testcase_02 AC 111 ms
55,856 KB
testcase_03 AC 107 ms
55,648 KB
testcase_04 AC 110 ms
55,872 KB
testcase_05 AC 107 ms
55,924 KB
testcase_06 AC 111 ms
56,352 KB
testcase_07 AC 118 ms
56,176 KB
testcase_08 AC 111 ms
56,724 KB
testcase_09 AC 111 ms
56,016 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import java.math.*;

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