結果

問題 No.454 逆2乗和
ユーザー 👑 rin204rin204
提出日時 2022-11-08 17:43:12
言語 PyPy3
(7.3.15)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 229 bytes
コンパイル時間 312 ms
コンパイル使用メモリ 86,660 KB
実行使用メモリ 97,724 KB
最終ジャッジ日時 2023-09-29 07:20:34
合計ジャッジ時間 55,798 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,012 ms
93,264 KB
testcase_01 AC 1,905 ms
96,696 KB
testcase_02 AC 1,996 ms
96,640 KB
testcase_03 TLE -
testcase_04 AC 1,921 ms
95,504 KB
testcase_05 TLE -
testcase_06 AC 1,078 ms
94,572 KB
testcase_07 AC 1,914 ms
96,884 KB
testcase_08 AC 1,927 ms
96,524 KB
testcase_09 AC 1,980 ms
95,268 KB
testcase_10 AC 1,941 ms
96,900 KB
testcase_11 AC 1,932 ms
95,456 KB
testcase_12 TLE -
testcase_13 AC 1,952 ms
96,340 KB
testcase_14 AC 1,962 ms
95,532 KB
testcase_15 AC 1,945 ms
95,684 KB
testcase_16 TLE -
testcase_17 TLE -
testcase_18 AC 1,927 ms
96,016 KB
testcase_19 TLE -
testcase_20 AC 1,923 ms
95,272 KB
testcase_21 AC 1,060 ms
95,924 KB
testcase_22 AC 1,072 ms
94,284 KB
testcase_23 AC 1,031 ms
96,108 KB
testcase_24 AC 1,024 ms
94,416 KB
testcase_25 AC 1,026 ms
96,072 KB
testcase_26 AC 1,001 ms
93,296 KB
testcase_27 AC 1,013 ms
93,416 KB
testcase_28 AC 1,024 ms
95,160 KB
testcase_29 AC 1,036 ms
97,724 KB
testcase_30 AC 1,052 ms
95,412 KB
testcase_31 AC 1,061 ms
95,456 KB
testcase_32 AC 1,071 ms
94,516 KB
testcase_33 AC 1,003 ms
93,192 KB
権限があれば一括ダウンロードができます

ソースコード

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