結果

問題 No.58 イカサマなサイコロ
ユーザー cielciel
提出日時 2015-06-19 23:43:11
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 653 ms / 5,000 ms
コード長 153 bytes
コンパイル時間 931 ms
コンパイル使用メモリ 78,180 KB
実行使用メモリ 104,524 KB
最終ジャッジ日時 2023-09-21 10:20:08
合計ジャッジ時間 5,427 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 295 ms
104,368 KB
testcase_01 AC 629 ms
104,340 KB
testcase_02 AC 283 ms
104,100 KB
testcase_03 AC 232 ms
104,244 KB
testcase_04 AC 484 ms
104,384 KB
testcase_05 AC 526 ms
104,300 KB
testcase_06 AC 653 ms
104,524 KB
testcase_07 AC 342 ms
104,168 KB
testcase_08 AC 403 ms
104,128 KB
testcase_09 AC 601 ms
104,516 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