結果

問題 No.454 逆2乗和
ユーザー 👑 rin204rin204
提出日時 2022-11-08 17:43:12
言語 PyPy3
(7.3.15)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 229 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 81,988 KB
実行使用メモリ 84,608 KB
最終ジャッジ日時 2024-07-22 01:56:37
合計ジャッジ時間 53,111 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 TLE * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import pi
from decimal import Decimal

x = Decimal(float(input()))
ans = Decimal(0)
for i in range(1, 10 ** 5 + 1):
    ans += Decimal(1) / (Decimal(i + x) * Decimal(i + x))
ans += Decimal(1) / Decimal(i + x)
print(ans)
0