結果
| 問題 |
No.58 イカサマなサイコロ
|
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2025-02-05 03:37:02 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 371 bytes |
| コンパイル時間 | 1,483 ms |
| コンパイル使用メモリ | 82,560 KB |
| 実行使用メモリ | 77,184 KB |
| 最終ジャッジ日時 | 2025-02-05 03:37:08 |
| 合計ジャッジ時間 | 4,206 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 1 |
ソースコード
import random
N = int(input())
K = int(input())
trials = 200_000
win = 0
for _ in range(trials):
a = 0
for i in range(N):
a += random.randint(1, 6)
b = 0
for i in range(N):
if i < K:
b += random.randint(4, 6)
else:
b += random.randint(1, 6)
if a < b:
win += 1
ans = win / trials
print(ans)
norioc