結果
問題 |
No.1807 UMA Gacha
|
ユーザー |
|
提出日時 | 2022-01-29 21:38:41 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 43 ms / 2,000 ms |
コード長 | 227 bytes |
コンパイル時間 | 600 ms |
コンパイル使用メモリ | 82,156 KB |
実行使用メモリ | 52,480 KB |
最終ジャッジ日時 | 2025-01-02 17:59:57 |
合計ジャッジ時間 | 2,753 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 21 |
ソースコード
from sys import stdin def inputSynario(): input = stdin.readline N = int(input().rstrip()) P = float(input().rstrip()) return N,P (N,P)=inputSynario() if (N >= 200): print(1) else: print( 1 - (1-P)**N )