結果

問題 No.58 イカサマなサイコロ
ユーザー cielciel
提出日時 2015-06-19 23:43:39
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 675 ms / 5,000 ms
コード長 152 bytes
コンパイル時間 1,576 ms
コンパイル使用メモリ 77,688 KB
実行使用メモリ 104,464 KB
最終ジャッジ日時 2023-09-21 10:20:17
合計ジャッジ時間 5,862 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 323 ms
104,220 KB
testcase_01 AC 654 ms
104,032 KB
testcase_02 AC 312 ms
104,176 KB
testcase_03 AC 257 ms
104,324 KB
testcase_04 AC 509 ms
104,312 KB
testcase_05 AC 552 ms
104,464 KB
testcase_06 AC 675 ms
104,328 KB
testcase_07 AC 315 ms
104,028 KB
testcase_08 AC 420 ms
104,068 KB
testcase_09 AC 628 ms
104,452 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