結果
問題 | No.58 イカサマなサイコロ |
ユーザー | vwxyz |
提出日時 | 2021-09-23 21:11:29 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 304 bytes |
コンパイル時間 | 69 ms |
コンパイル使用メモリ | 10,540 KB |
実行使用メモリ | 8,964 KB |
最終ジャッジ日時 | 2023-09-18 19:59:13 |
合計ジャッジ時間 | 8,270 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 1,282 ms
8,824 KB |
testcase_02 | AC | 360 ms
8,964 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 1,174 ms
8,752 KB |
testcase_07 | WA | - |
testcase_08 | AC | 581 ms
8,784 KB |
testcase_09 | AC | 1,154 ms
8,716 KB |
ソースコード
import random N=int(input()) K=int(input()) ans=0 for _ in range(10**5): 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**5 print(ans)