結果
問題 |
No.58 イカサマなサイコロ
|
ユーザー |
![]() |
提出日時 | 2021-12-16 00:45:23 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 345 bytes |
コンパイル時間 | 192 ms |
コンパイル使用メモリ | 82,428 KB |
実行使用メモリ | 84,144 KB |
最終ジャッジ日時 | 2024-07-23 20:41:13 |
合計ジャッジ時間 | 11,597 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)