結果

問題 No.1807 UMA Gacha
ユーザー KeroruKeroru
提出日時 2022-01-14 21:27:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 107 bytes
コンパイル時間 190 ms
コンパイル使用メモリ 82,400 KB
実行使用メモリ 53,504 KB
最終ジャッジ日時 2024-04-30 12:46:39
合計ジャッジ時間 2,041 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
52,004 KB
testcase_01 AC 39 ms
51,824 KB
testcase_02 AC 39 ms
52,440 KB
testcase_03 AC 40 ms
53,080 KB
testcase_04 AC 40 ms
52,620 KB
testcase_05 AC 41 ms
52,212 KB
testcase_06 AC 41 ms
53,504 KB
testcase_07 AC 40 ms
52,740 KB
testcase_08 AC 40 ms
53,008 KB
testcase_09 AC 40 ms
52,964 KB
testcase_10 AC 40 ms
52,644 KB
testcase_11 AC 41 ms
53,344 KB
testcase_12 AC 40 ms
52,268 KB
testcase_13 AC 39 ms
52,692 KB
testcase_14 AC 40 ms
52,236 KB
testcase_15 AC 39 ms
53,160 KB
testcase_16 AC 40 ms
52,328 KB
testcase_17 AC 40 ms
52,680 KB
testcase_18 AC 41 ms
53,008 KB
testcase_19 AC 40 ms
52,064 KB
testcase_20 AC 40 ms
52,672 KB
testcase_21 AC 40 ms
52,664 KB
testcase_22 AC 39 ms
52,288 KB
testcase_23 AC 41 ms
52,896 KB
testcase_24 AC 40 ms
52,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,p,*a=map(float,open(0).read().split())
x=1
n=int(n)
for i in range(n):x*=1-p
x=1-x
if n>=200:x=1
print(x)
0