結果
| 問題 |
No.58 イカサマなサイコロ
|
| ユーザー |
vwxyz
|
| 提出日時 | 2021-09-23 21:10:17 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 304 bytes |
| コンパイル時間 | 80 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 17,948 KB |
| 最終ジャッジ日時 | 2024-07-05 09:30:53 |
| 合計ジャッジ時間 | 14,593 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 TLE * 1 -- * 8 |
ソースコード
import random
N=int(input())
K=int(input())
ans=0
for _ in range(10**6):
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**6
print(ans)
vwxyz