結果
問題 |
No.212 素数サイコロと合成数サイコロ (2)
|
ユーザー |
![]() |
提出日時 | 2015-10-22 17:30:36 |
言語 | Python2 (2.7.18) |
結果 |
MLE
|
実行時間 | - |
コード長 | 342 bytes |
コンパイル時間 | 430 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 820,912 KB |
最終ジャッジ日時 | 2024-07-22 11:30:49 |
合計ジャッジ時間 | 17,515 ms |
ジャッジサーバーID (参考情報) |
judge4 / 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