結果
問題 |
No.58 イカサマなサイコロ
|
ユーザー |
|
提出日時 | 2016-04-16 15:53:43 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 288 bytes |
コンパイル時間 | 114 ms |
コンパイル使用メモリ | 6,952 KB |
実行使用メモリ | 13,736 KB |
最終ジャッジ日時 | 2024-10-04 10:16:28 |
合計ジャッジ時間 | 15,283 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 TLE * 1 -- * 8 |
ソースコード
# coding: utf-8 #yuki_58 import random n=int(raw_input()) k=int(raw_input()) res=0 for i in xrange(1000000): temp=0 for j in xrange(n): temp+=random.randrange(1,7) if j<k: temp-=random.randrange(4,7) else: temp-=random.randrange(1,7) res+=(temp<0) print 1.0*res/1000000