結果
| 問題 | No.58 イカサマなサイコロ |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2021-12-16 00:45:58 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 728 ms / 5,000 ms |
| + 720µs | |
| コード長 | 344 bytes |
| 記録 | |
| コンパイル時間 | 257 ms |
| コンパイル使用メモリ | 95,980 KB |
| 実行使用メモリ | 85,248 KB |
| 最終ジャッジ日時 | 2026-08-24 07:55:04 |
| 合計ジャッジ時間 | 6,226 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
import random
N=int(input())
K=int(input())
ANS=0
tests=10**6
for i in range(tests):
A=0
B=0
for j in range(N):
if j<K:
A+=random.randint(4,6)
B+=random.randint(1,6)
else:
A+=random.randint(1,6)
B+=random.randint(1,6)
if A>B:
ANS+=1
print(ANS/tests)
titia