結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー rlangevinrlangevin
提出日時 2023-01-06 01:03:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 5,000 ms
コード長 233 bytes
コンパイル時間 459 ms
コンパイル使用メモリ 87,064 KB
実行使用メモリ 71,496 KB
最終ジャッジ日時 2023-08-19 21:37:09
合計ジャッジ時間 2,335 ms
ジャッジサーバーID
(参考情報)
judge10 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,196 KB
testcase_01 AC 74 ms
71,492 KB
testcase_02 AC 74 ms
71,472 KB
testcase_03 AC 74 ms
71,376 KB
testcase_04 AC 74 ms
71,492 KB
testcase_05 AC 75 ms
71,496 KB
testcase_06 AC 76 ms
71,388 KB
testcase_07 AC 72 ms
71,284 KB
testcase_08 AC 73 ms
71,428 KB
testcase_09 AC 74 ms
71,248 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A = [2, 3, 5, 7, 11, 13]
B = [4, 6, 8, 9, 10, 12]
P, C = map(int, input().split())
pre = 1
va, vb = sum(A), sum(B)
for i in range(P):
    ans = pre * va/6
    pre = ans
for i in range(C):
    ans = pre * vb/6
    pre = ans
print(pre)
0