結果
問題 |
No.58 イカサマなサイコロ
|
ユーザー |
![]() |
提出日時 | 2021-09-23 21:09:48 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 304 bytes |
コンパイル時間 | 176 ms |
コンパイル使用メモリ | 82,192 KB |
実行使用メモリ | 84,096 KB |
最終ジャッジ日時 | 2024-07-05 09:30:38 |
合計ジャッジ時間 | 11,299 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 TLE * 1 -- * 8 |
ソースコード
import random N=int(input()) K=int(input()) ans=0 for _ in range(10**7): s0,s1=0,0 for i in range(N): s0+=random.randint(1,6) for i in range(N-K): s1+=random.randint(1,6) for i in range(K): s1+=random.randint(4,6) if s0<s1: ans+=1 ans/=10**7 print(ans)