結果
| 問題 | No.212 素数サイコロと合成数サイコロ (2) |
| コンテスト | |
| ユーザー |
yaoshimax
|
| 提出日時 | 2015-05-24 19:20:13 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 323 bytes |
| 記録 | |
| コンパイル時間 | 1,209 ms |
| コンパイル使用メモリ | 80,864 KB |
| 実行使用メモリ | 1,110,388 KB |
| 最終ジャッジ日時 | 2026-03-27 19:49:12 |
| 合計ジャッジ時間 | 12,167 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 MLE * 1 |
ソースコード
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))
yaoshimax