結果
| 問題 | No.1076 寿司打 |
| コンテスト | |
| ユーザー |
r_ishida
|
| 提出日時 | 2026-02-19 06:55:41 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 68 ms / 2,000 ms |
| + 266µs | |
| コード長 | 405 bytes |
| 記録 | |
| コンパイル時間 | 227 ms |
| コンパイル使用メモリ | 95,984 KB |
| 実行使用メモリ | 84,352 KB |
| 最終ジャッジ日時 | 2026-07-21 09:21:22 |
| 合計ジャッジ時間 | 2,741 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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