結果
| 問題 | No.1076 寿司打 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-17 23:14:03 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 24 ms / 2,000 ms |
| コード長 | 140 bytes |
| 記録 | |
| コンパイル時間 | 294 ms |
| コンパイル使用メモリ | 85,412 KB |
| 実行使用メモリ | 54,084 KB |
| 最終ジャッジ日時 | 2026-05-26 02:19:10 |
| 合計ジャッジ時間 | 1,477 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
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)