結果

問題 No.1807 UMA Gacha
ユーザー lllllll88938494lllllll88938494
提出日時 2022-01-18 05:23:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 181 bytes
コンパイル時間 227 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 81,536 KB
最終ジャッジ日時 2024-05-02 19:17:19
合計ジャッジ時間 4,061 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
80,000 KB
testcase_01 AC 117 ms
80,000 KB
testcase_02 AC 117 ms
80,256 KB
testcase_03 AC 112 ms
80,000 KB
testcase_04 AC 116 ms
80,000 KB
testcase_05 AC 112 ms
80,128 KB
testcase_06 AC 110 ms
80,128 KB
testcase_07 AC 111 ms
80,256 KB
testcase_08 AC 119 ms
81,536 KB
testcase_09 AC 118 ms
81,536 KB
testcase_10 AC 120 ms
81,152 KB
testcase_11 AC 119 ms
81,536 KB
testcase_12 AC 106 ms
79,872 KB
testcase_13 AC 112 ms
79,872 KB
testcase_14 AC 108 ms
80,128 KB
testcase_15 AC 112 ms
80,128 KB
testcase_16 AC 109 ms
79,744 KB
testcase_17 AC 113 ms
80,000 KB
testcase_18 AC 111 ms
80,000 KB
testcase_19 AC 108 ms
80,256 KB
testcase_20 AC 111 ms
80,000 KB
testcase_21 AC 114 ms
80,000 KB
testcase_22 AC 107 ms
80,000 KB
testcase_23 AC 112 ms
80,128 KB
testcase_24 AC 107 ms
80,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal
n=int(input())
p=float(input())
pp=1
p = 1-p

if n >= 200:
    print(1)
    exit()
    
for i in range(n):
    pp *= Decimal(p)
    
print(round(1-pp,8))
0