結果

問題 No.454 逆2乗和
ユーザー pluto77pluto77
提出日時 2016-12-22 08:27:05
言語 Python2
(2.7.18)
結果
AC  
実行時間 379 ms / 2,000 ms
コード長 118 bytes
コンパイル時間 156 ms
コンパイル使用メモリ 6,584 KB
実行使用メモリ 6,468 KB
最終ジャッジ日時 2023-08-20 03:32:33
合計ジャッジ時間 14,897 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 376 ms
6,312 KB
testcase_01 AC 374 ms
6,416 KB
testcase_02 AC 377 ms
6,296 KB
testcase_03 AC 379 ms
6,244 KB
testcase_04 AC 377 ms
6,228 KB
testcase_05 AC 377 ms
6,372 KB
testcase_06 AC 375 ms
6,300 KB
testcase_07 AC 377 ms
6,312 KB
testcase_08 AC 376 ms
6,432 KB
testcase_09 AC 377 ms
6,232 KB
testcase_10 AC 377 ms
6,420 KB
testcase_11 AC 377 ms
6,432 KB
testcase_12 AC 379 ms
6,300 KB
testcase_13 AC 377 ms
6,436 KB
testcase_14 AC 379 ms
6,224 KB
testcase_15 AC 376 ms
6,304 KB
testcase_16 AC 375 ms
6,412 KB
testcase_17 AC 374 ms
6,240 KB
testcase_18 AC 378 ms
6,380 KB
testcase_19 AC 379 ms
6,416 KB
testcase_20 AC 379 ms
6,228 KB
testcase_21 AC 377 ms
6,452 KB
testcase_22 AC 373 ms
6,420 KB
testcase_23 AC 376 ms
6,312 KB
testcase_24 AC 377 ms
6,228 KB
testcase_25 AC 377 ms
6,232 KB
testcase_26 AC 374 ms
6,332 KB
testcase_27 AC 378 ms
6,468 KB
testcase_28 AC 377 ms
6,448 KB
testcase_29 AC 376 ms
6,356 KB
testcase_30 AC 379 ms
6,372 KB
testcase_31 AC 377 ms
6,456 KB
testcase_32 AC 376 ms
6,448 KB
testcase_33 AC 377 ms
6,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki454
import math

n=float(raw_input())
a=math.pi**2/6
for i in xrange(1,1000000):
 a+=(n+i)**(-2)-i**(-2)
print a
0