結果

問題 No.1076 寿司打
ユーザー miya145592miya145592
提出日時 2023-05-17 23:14:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 140 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 87,576 KB
実行使用メモリ 72,116 KB
最終ジャッジ日時 2023-08-22 00:44:18
合計ジャッジ時間 2,367 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,984 KB
testcase_01 AC 69 ms
72,104 KB
testcase_02 AC 71 ms
71,696 KB
testcase_03 AC 72 ms
72,116 KB
testcase_04 AC 74 ms
71,972 KB
testcase_05 AC 70 ms
71,800 KB
testcase_06 AC 71 ms
71,532 KB
testcase_07 AC 72 ms
72,000 KB
testcase_08 AC 73 ms
71,520 KB
testcase_09 AC 72 ms
72,036 KB
testcase_10 AC 70 ms
72,036 KB
testcase_11 AC 71 ms
71,940 KB
testcase_12 AC 69 ms
72,020 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

p = float(input())
ans = 0
i = 1
while True:
    temp = p**i*(1-p)*i
    ans += temp
    if temp<10**(-6):
        break
    i+=1
print(ans)
0