結果

問題 No.65 回数の期待値の練習
ユーザー matsu7874matsu7874
提出日時 2014-11-13 23:29:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 97 ms / 5,000 ms
コード長 150 bytes
コンパイル時間 767 ms
コンパイル使用メモリ 10,528 KB
実行使用メモリ 8,840 KB
最終ジャッジ日時 2023-08-30 03:25:25
合計ジャッジ時間 3,441 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 97 ms
8,764 KB
testcase_01 AC 92 ms
8,764 KB
testcase_02 AC 92 ms
8,840 KB
testcase_03 AC 87 ms
8,724 KB
testcase_04 AC 89 ms
8,840 KB
testcase_05 AC 88 ms
8,784 KB
testcase_06 AC 88 ms
8,664 KB
testcase_07 AC 85 ms
8,760 KB
testcase_08 AC 85 ms
8,796 KB
testcase_09 AC 84 ms
8,788 KB
testcase_10 AC 86 ms
8,660 KB
testcase_11 AC 84 ms
8,668 KB
testcase_12 AC 85 ms
8,668 KB
testcase_13 AC 83 ms
8,760 KB
testcase_14 AC 86 ms
8,720 KB
testcase_15 AC 82 ms
8,828 KB
testcase_16 AC 83 ms
8,652 KB
testcase_17 AC 83 ms
8,668 KB
testcase_18 AC 84 ms
8,796 KB
testcase_19 AC 85 ms
8,788 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import random
K = int(input())
cnt = 0
a = 0
for i in range(100000):
	if a>=K:
		a = 0
		cnt += 1
	a += random.randint(1,6)
print(100000/cnt)
0