結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー steek79steek79
提出日時 2015-10-22 17:30:36
言語 Python2
(2.7.18)
結果
MLE  
実行時間 -
コード長 342 bytes
コンパイル時間 745 ms
コンパイル使用メモリ 6,524 KB
実行使用メモリ 813,488 KB
最終ジャッジ日時 2023-09-29 17:29:05
合計ジャッジ時間 9,327 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,040 KB
testcase_01 AC 16 ms
7,476 KB
testcase_02 AC 11 ms
5,856 KB
testcase_03 AC 17 ms
7,464 KB
testcase_04 AC 1,240 ms
379,920 KB
testcase_05 MLE -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

prime = [2,3,5,7,11,13]
compo = [4,6,8,9,10,12]

P, C = map(int, raw_input().split())

def multi(list1, list2):
    return [item1 * item2 for item1 in list1 for item2 in list2]

dice = [1]*6
for loop in xrange(P):
    dice = multi(dice, prime)

for loop in xrange(C):
    dice = multi(dice, compo)

exp = 1.0 * sum(dice) / len(dice)
print exp
0