結果
問題 |
No.454 逆2乗和
|
ユーザー |
|
提出日時 | 2022-11-08 17:44:02 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 233 bytes |
コンパイル時間 | 322 ms |
コンパイル使用メモリ | 82,208 KB |
実行使用メモリ | 84,688 KB |
最終ジャッジ日時 | 2024-07-22 01:56:58 |
合計ジャッジ時間 | 16,674 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 31 |
ソースコード
from math import pi from decimal import Decimal x = Decimal(float(input())) ans = Decimal(0) for i in range(1, 8 + 10 ** 4 + 1): ans += Decimal(1) / (Decimal(i + x) * Decimal(i + x)) ans += Decimal(1) / Decimal(i + x) print(ans)