結果
問題 | No.58 イカサマなサイコロ |
ユーザー | pluto77 |
提出日時 | 2016-04-29 08:10:29 |
言語 | PyPy2 (7.3.15) |
結果 |
AC
|
実行時間 | 577 ms / 5,000 ms |
コード長 | 286 bytes |
コンパイル時間 | 445 ms |
コンパイル使用メモリ | 76,832 KB |
実行使用メモリ | 94,864 KB |
最終ジャッジ日時 | 2024-04-15 05:19:14 |
合計ジャッジ時間 | 5,779 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 275 ms
94,472 KB |
testcase_01 | AC | 577 ms
94,484 KB |
testcase_02 | AC | 266 ms
94,628 KB |
testcase_03 | AC | 230 ms
94,760 KB |
testcase_04 | AC | 432 ms
94,732 KB |
testcase_05 | AC | 473 ms
94,320 KB |
testcase_06 | AC | 563 ms
94,864 KB |
testcase_07 | AC | 275 ms
94,632 KB |
testcase_08 | AC | 374 ms
94,476 KB |
testcase_09 | AC | 550 ms
94,392 KB |
ソースコード
# coding: utf-8 #yuki_58 import random n=int(raw_input()) k=int(raw_input()) res=0 for i in xrange(800000): 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/800000