結果
| 問題 |
No.211 素数サイコロと合成数サイコロ (1)
|
| コンテスト | |
| ユーザー |
yaoshimax
|
| 提出日時 | 2015-05-24 19:11:57 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 11 ms / 1,000 ms |
| コード長 | 193 bytes |
| コンパイル時間 | 484 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2024-06-25 22:21:48 |
| 合計ジャッジ時間 | 1,376 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 33 |
ソースコード
prob=[0.0 for i in range(201)]
primeDice=[2,3,5,7,11,13]
compDice=[4,6,8,9,10,12]
for p in primeDice:
for c in compDice:
prob[p*c]+=1.0/36
K=int(raw_input())
print "%.13f"%prob[K]
yaoshimax