結果

問題 No.454 逆2乗和
ユーザー shobonvip
提出日時 2022-03-12 16:00:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 124 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 75,752 KB
最終ジャッジ日時 2024-09-16 23:21:37
合計ジャッジ時間 3,918 ms
ジャッジサーバーID
(参考情報)
judge6 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
x = float(input())

s = math.pi**2/6
for n in range(1, 3000000):
	s -= (x**2 + 2*n*x)/((x+n)**2 * n**2)
print(s)
0