結果

問題 No.1807 UMA Gacha
ユーザー 👑 tamatotamato
提出日時 2022-01-14 21:23:39
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 81 ms / 2,000 ms
コード長 251 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 87,272 KB
実行使用メモリ 71,852 KB
最終ジャッジ日時 2023-08-12 17:30:33
合計ジャッジ時間 3,337 ms
ジャッジサーバーID
(参考情報)
judge7 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,768 KB
testcase_01 AC 74 ms
71,764 KB
testcase_02 AC 77 ms
71,768 KB
testcase_03 AC 81 ms
71,384 KB
testcase_04 AC 77 ms
71,756 KB
testcase_05 AC 75 ms
71,668 KB
testcase_06 AC 76 ms
71,692 KB
testcase_07 AC 74 ms
71,712 KB
testcase_08 AC 76 ms
71,664 KB
testcase_09 AC 74 ms
71,516 KB
testcase_10 AC 74 ms
71,800 KB
testcase_11 AC 76 ms
71,808 KB
testcase_12 AC 76 ms
71,684 KB
testcase_13 AC 74 ms
71,744 KB
testcase_14 AC 75 ms
71,448 KB
testcase_15 AC 74 ms
71,668 KB
testcase_16 AC 75 ms
71,684 KB
testcase_17 AC 76 ms
71,752 KB
testcase_18 AC 75 ms
71,804 KB
testcase_19 AC 75 ms
71,668 KB
testcase_20 AC 76 ms
71,852 KB
testcase_21 AC 77 ms
71,712 KB
testcase_22 AC 76 ms
71,324 KB
testcase_23 AC 75 ms
71,636 KB
testcase_24 AC 76 ms
71,768 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

    N = int(input())
    P = float(input())
    if N >= 200:
        print(1)
    else:
        print(1 - (1 - P) ** N)


if __name__ == '__main__':
    main()
0