結果
| 問題 | No.1076 寿司打 |
| コンテスト | |
| ユーザー |
r_ishida
|
| 提出日時 | 2026-02-19 06:55:41 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 2,000 ms |
| コード長 | 405 bytes |
| 記録 | |
| コンパイル時間 | 348 ms |
| コンパイル使用メモリ | 82,692 KB |
| 実行使用メモリ | 61,428 KB |
| 最終ジャッジ日時 | 2026-02-19 06:55:43 |
| 合計ジャッジ時間 | 1,753 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
import math
import sys
def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int, sys.stdin.readline().rstrip().split())
def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
p = float(S())
n = 10000
ans = 0
for i in range(n):
ans += i*p**i*(1-p)
print(ans)
r_ishida