結果

問題 No.58 イカサマなサイコロ
ユーザー cielciel
提出日時 2015-06-19 23:41:22
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 640 ms / 5,000 ms
コード長 164 bytes
コンパイル時間 1,226 ms
コンパイル使用メモリ 78,144 KB
実行使用メモリ 104,764 KB
最終ジャッジ日時 2023-09-21 10:19:35
合計ジャッジ時間 7,101 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 298 ms
104,764 KB
testcase_01 AC 623 ms
104,220 KB
testcase_02 AC 284 ms
104,352 KB
testcase_03 AC 234 ms
104,124 KB
testcase_04 AC 473 ms
104,460 KB
testcase_05 AC 520 ms
104,520 KB
testcase_06 AC 640 ms
104,220 KB
testcase_07 AC 289 ms
104,128 KB
testcase_08 AC 400 ms
104,104 KB
testcase_09 AC 589 ms
104,108 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import random
N=input()
K=input()
s=0.
t=7**7
for _ in [0]*t:
	a=0
	for i in range(N):a+=random.randrange(1,7)-random.randrange(4 if i<K else 1,7)
	s+=a<0
print s/t
0