結果

問題 No.1271 初めての級数
ユーザー wolgnikwolgnik
提出日時 2020-10-31 02:08:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 168 ms / 2,000 ms
コード長 130 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 87,128 KB
実行使用メモリ 76,660 KB
最終ジャッジ日時 2023-09-29 09:44:29
合計ジャッジ時間 3,381 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 165 ms
76,272 KB
testcase_01 AC 165 ms
76,564 KB
testcase_02 AC 165 ms
76,272 KB
testcase_03 AC 167 ms
76,388 KB
testcase_04 AC 166 ms
76,220 KB
testcase_05 AC 165 ms
76,220 KB
testcase_06 AC 166 ms
76,488 KB
testcase_07 AC 165 ms
76,220 KB
testcase_08 AC 166 ms
76,216 KB
testcase_09 AC 163 ms
76,404 KB
testcase_10 AC 166 ms
76,660 KB
testcase_11 AC 164 ms
76,560 KB
testcase_12 AC 168 ms
76,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
k = int(input())
res = 0.
for x in range(1, 10 ** 7): res += 1 / (x ** 2 + x * k)
print(res)
0