結果
問題 | No.212 素数サイコロと合成数サイコロ (2) |
ユーザー | yaoshimax |
提出日時 | 2015-05-24 19:20:13 |
言語 | PyPy2 (7.3.15) |
結果 |
MLE
|
実行時間 | - |
コード長 | 323 bytes |
コンパイル時間 | 1,059 ms |
コンパイル使用メモリ | 77,508 KB |
実行使用メモリ | 844,376 KB |
最終ジャッジ日時 | 2023-09-20 12:45:25 |
合計ジャッジ時間 | 6,001 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 75 ms
76,236 KB |
testcase_01 | AC | 86 ms
78,588 KB |
testcase_02 | AC | 77 ms
76,064 KB |
testcase_03 | AC | 83 ms
78,624 KB |
testcase_04 | AC | 177 ms
221,796 KB |
testcase_05 | MLE | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
ソースコード
P,C=map(int,raw_input().split()) V=[1] for i in range(P): nextV=[] for p in (2,3,5,7,11,13): for v in V: nextV.append(v*p) V=nextV for c in range(C): nextV=[] for p in (4,6,8,9,10,12): for v in V: nextV.append(v*p) V=nextV print "%.9f"%(sum(V)/pow(6.0,C+P))