結果
| 問題 | No.58 イカサマなサイコロ |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2021-12-16 00:45:23 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 345 bytes |
| 記録 | |
| コンパイル時間 | 143 ms |
| コンパイル使用メモリ | 85,244 KB |
| 実行使用メモリ | 89,428 KB |
| 最終ジャッジ日時 | 2026-04-03 16:13:46 |
| 合計ジャッジ時間 | 10,027 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 TLE * 1 -- * 8 |
ソースコード
import random
N=int(input())
K=int(input())
ANS=0
tests=10**7
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