結果
| 問題 |
No.1807 UMA Gacha
|
| コンテスト | |
| ユーザー |
lllllll88938494
|
| 提出日時 | 2022-01-18 05:23:44 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 132 ms / 2,000 ms |
| コード長 | 181 bytes |
| コンパイル時間 | 321 ms |
| コンパイル使用メモリ | 82,464 KB |
| 実行使用メモリ | 81,656 KB |
| 最終ジャッジ日時 | 2024-11-23 13:15:46 |
| 合計ジャッジ時間 | 4,141 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 21 |
ソースコード
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))
lllllll88938494