結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー solorabsolorab
提出日時 2015-05-22 22:32:15
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 20 ms / 5,000 ms
コード長 229 bytes
コンパイル時間 615 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 8,772 KB
最終ジャッジ日時 2023-09-20 09:30:11
合計ジャッジ時間 1,168 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,772 KB
testcase_01 AC 20 ms
8,768 KB
testcase_02 AC 20 ms
8,760 KB
testcase_03 AC 20 ms
8,604 KB
testcase_04 AC 20 ms
8,636 KB
testcase_05 AC 19 ms
8,624 KB
testcase_06 AC 20 ms
8,716 KB
testcase_07 AC 19 ms
8,708 KB
testcase_08 AC 19 ms
8,612 KB
testcase_09 AC 19 ms
8,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import functools
p, c = map(int,input().split())
pe = sum([2,3,5,7,11,13]) / 6
ce = sum([4,6,8,9,10,12]) / 6
acc = functools.reduce(lambda x, y: x * y, ([pe] * p) + ([ce] * c))
print('{:.16f}'.format(acc))
0