結果
| 問題 |
No.58 イカサマなサイコロ
|
| コンテスト | |
| ユーザー |
kutsutama
|
| 提出日時 | 2018-03-25 01:22:10 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 377 bytes |
| コンパイル時間 | 100 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-06-25 04:31:08 |
| 合計ジャッジ時間 | 9,516 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 5 |
ソースコード
import random
n = int(input())
k = int(input())
tes = 10**5
cnt = 0
for i in range(tes):
taro = 0
jiro = 0
for j in range(n):
if j < k:
taro += random.randint(4, 6)
else:
taro += random.randint(1, 6)
jiro += random.randint(1, 6)
if taro > jiro:
cnt += 1
res = cnt / tes
print(res)
kutsutama