結果
| 問題 | No.75 回数の期待値の問題 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-07-05 15:51:50 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 1,838 ms / 5,000 ms |
| コード長 | 270 bytes |
| 記録 | |
| コンパイル時間 | 462 ms |
| コンパイル使用メモリ | 85,632 KB |
| 実行使用メモリ | 81,536 KB |
| 最終ジャッジ日時 | 2026-05-26 05:22:53 |
| 合計ジャッジ時間 | 40,083 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)