結果
問題 | No.75 回数の期待値の問題 |
ユーザー |
👑 |
提出日時 | 2022-07-05 15:51:50 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 1,839 ms / 5,000 ms |
コード長 | 270 bytes |
コンパイル時間 | 269 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 76,828 KB |
最終ジャッジ日時 | 2024-12-15 22:23:31 |
合計ジャッジ時間 | 39,705 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 16 |
ソースコード
import time start = time.time() import random k = int(input()) cnt = 0 tot = 0 while time.time() - start < 1.8: x = 0 cnt += 1 while x != k: tot += 1 x += random.randrange(1, 7) if x > k: x = 0 print(tot / cnt)