結果
| 問題 | No.212 素数サイコロと合成数サイコロ (2) |
| コンテスト | |
| ユーザー |
steek79
|
| 提出日時 | 2015-10-22 17:30:36 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 342 bytes |
| 記録 | |
| コンパイル時間 | 155 ms |
| コンパイル使用メモリ | 77,852 KB |
| 最終ジャッジ日時 | 2025-12-03 17:41:35 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 MLE * 1 -- * 4 |
ソースコード
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
steek79