結果

問題 No.454 逆2乗和
ユーザー rin204
提出日時 2022-11-08 17:40:29
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 194 bytes
コンパイル時間 382 ms
コンパイル使用メモリ 82,308 KB
実行使用メモリ 84,676 KB
最終ジャッジ日時 2024-07-22 01:53:08
合計ジャッジ時間 52,828 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 26 TLE * 5
権限があれば一括ダウンロードができます

ソースコード

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))
print(ans)
0