結果
問題 | No.65 回数の期待値の練習 |
ユーザー |
![]() |
提出日時 | 2014-11-13 23:29:45 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 137 ms / 5,000 ms |
コード長 | 150 bytes |
コンパイル時間 | 223 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,136 KB |
最終ジャッジ日時 | 2024-12-31 10:16:58 |
合計ジャッジ時間 | 3,899 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 16 |
ソースコード
import randomK = int(input())cnt = 0a = 0for i in range(100000):if a>=K:a = 0cnt += 1a += random.randint(1,6)print(100000/cnt)