結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー yuppe19 😺yuppe19 😺
提出日時 2015-05-23 13:26:50
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 320 bytes
コンパイル時間 273 ms
コンパイル使用メモリ 87,140 KB
実行使用メモリ 84,228 KB
最終ジャッジ日時 2023-09-20 10:49:58
合計ジャッジ時間 7,864 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
77,784 KB
testcase_01 AC 115 ms
77,512 KB
testcase_02 AC 110 ms
72,932 KB
testcase_03 AC 115 ms
77,532 KB
testcase_04 AC 346 ms
79,036 KB
testcase_05 TLE -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python
from itertools import product
from collections import defaultdict
from operator import mul
from functools import reduce
a = [2, 3, 5, 7, 11, 13]
b = [4, 6, 8, 9, 10, 12]
p, c = map(int, input().split())
L = [a] * p + [b] * c
res = sum(reduce(mul, s) for s in product(*L))
print(float(res) / (6**(p+c)))
0