結果

問題 No.58 イカサマなサイコロ
ユーザー cielciel
提出日時 2015-06-19 23:42:52
言語 PyPy2
(7.3.15)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 153 bytes
コンパイル時間 1,930 ms
コンパイル使用メモリ 77,380 KB
実行使用メモリ 104,520 KB
最終ジャッジ日時 2023-09-21 10:19:56
合計ジャッジ時間 6,021 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 292 ms
104,244 KB
testcase_01 AC 624 ms
104,148 KB
testcase_02 AC 283 ms
104,012 KB
testcase_03 AC 228 ms
104,212 KB
testcase_04 WA -
testcase_05 AC 525 ms
104,480 KB
testcase_06 AC 650 ms
104,084 KB
testcase_07 AC 289 ms
104,392 KB
testcase_08 AC 399 ms
104,520 KB
testcase_09 AC 598 ms
104,472 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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