結果

問題 No.1271 初めての級数
ユーザー Somtk_42Somtk_42
提出日時 2020-10-30 21:29:09
言語 Python3
(3.11.2 + numpy 1.24.2 + scipy 1.10.1)
結果
AC  
実行時間 229 ms / 2,000 ms
コード長 84 bytes
コンパイル時間 489 ms
実行使用メモリ 9,708 KB
最終ジャッジ日時 2023-02-21 10:52:50
合計ジャッジ時間 4,330 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 223 ms
7,752 KB
testcase_01 AC 222 ms
7,668 KB
testcase_02 AC 224 ms
7,568 KB
testcase_03 AC 225 ms
9,692 KB
testcase_04 AC 222 ms
7,688 KB
testcase_05 AC 229 ms
7,752 KB
testcase_06 AC 228 ms
9,652 KB
testcase_07 AC 222 ms
9,708 KB
testcase_08 AC 223 ms
7,580 KB
testcase_09 AC 222 ms
7,700 KB
testcase_10 AC 229 ms
7,600 KB
testcase_11 AC 226 ms
7,680 KB
testcase_12 AC 223 ms
9,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

k = int(input())
ans = 0
for i in range(1, 10**6):
    ans += 1/((i+k)*i)
print(ans)
0