結果

問題 No.454 逆2乗和
ユーザー shotoyooshotoyoo
提出日時 2021-06-19 19:20:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 222 ms / 2,000 ms
コード長 371 bytes
コンパイル時間 1,010 ms
コンパイル使用メモリ 87,156 KB
実行使用メモリ 76,880 KB
最終ジャッジ日時 2023-09-05 01:10:38
合計ジャッジ時間 9,511 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 220 ms
76,692 KB
testcase_01 AC 219 ms
76,556 KB
testcase_02 AC 218 ms
76,828 KB
testcase_03 AC 218 ms
76,852 KB
testcase_04 AC 217 ms
76,732 KB
testcase_05 AC 218 ms
76,544 KB
testcase_06 AC 219 ms
76,600 KB
testcase_07 AC 219 ms
76,836 KB
testcase_08 AC 219 ms
76,832 KB
testcase_09 AC 219 ms
76,544 KB
testcase_10 AC 221 ms
76,816 KB
testcase_11 AC 219 ms
76,828 KB
testcase_12 AC 218 ms
76,660 KB
testcase_13 AC 220 ms
76,556 KB
testcase_14 AC 220 ms
76,560 KB
testcase_15 AC 220 ms
76,732 KB
testcase_16 AC 219 ms
76,732 KB
testcase_17 AC 219 ms
76,880 KB
testcase_18 AC 220 ms
76,740 KB
testcase_19 AC 219 ms
76,732 KB
testcase_20 AC 219 ms
76,524 KB
testcase_21 AC 220 ms
76,828 KB
testcase_22 AC 219 ms
76,680 KB
testcase_23 AC 219 ms
76,684 KB
testcase_24 AC 220 ms
76,680 KB
testcase_25 AC 218 ms
76,660 KB
testcase_26 AC 220 ms
76,848 KB
testcase_27 AC 222 ms
76,700 KB
testcase_28 AC 217 ms
76,556 KB
testcase_29 AC 217 ms
76,556 KB
testcase_30 AC 219 ms
76,544 KB
testcase_31 AC 222 ms
76,740 KB
testcase_32 AC 217 ms
76,524 KB
testcase_33 AC 219 ms
76,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda : sys.stdin.readline().rstrip()


sys.setrecursionlimit(2*10**5+10)
write = lambda x: sys.stdout.write(x+"\n")
debug = lambda x: sys.stderr.write(x+"\n")
writef = lambda x: print("{:.12f}".format(x))

import math
def f(x):
    return 1/x/x
x = float(input())
ans = 0
for v in range(1,10**7)[::-1]:
    ans += f(x+v)
ans += 1/(x+10**7)
print(ans)
0