結果

問題 No.2461 一点張り
ユーザー KudeKude
提出日時 2023-09-08 21:25:30
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 163 bytes
コンパイル時間 654 ms
コンパイル使用メモリ 86,564 KB
実行使用メモリ 76,684 KB
最終ジャッジ日時 2023-09-08 21:25:33
合計ジャッジ時間 1,755 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,612 KB
testcase_01 WA -
testcase_02 AC 100 ms
76,536 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 100 ms
76,684 KB
testcase_07 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
    p, k = input().split()
    p = float(p)
    k = int(k)
    if p:
        print((1 - (1 - p) ** k) / p)
    else:
        print(1)
0