結果

問題 No.1271 初めての級数
ユーザー morningsugarmorningsugar
提出日時 2021-08-30 14:39:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 239 ms / 2,000 ms
コード長 78 bytes
コンパイル時間 365 ms
コンパイル使用メモリ 10,708 KB
実行使用メモリ 7,908 KB
最終ジャッジ日時 2023-08-15 12:31:19
合計ジャッジ時間 4,510 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 228 ms
7,800 KB
testcase_01 AC 232 ms
7,828 KB
testcase_02 AC 226 ms
7,832 KB
testcase_03 AC 217 ms
7,872 KB
testcase_04 AC 210 ms
7,808 KB
testcase_05 AC 231 ms
7,804 KB
testcase_06 AC 239 ms
7,808 KB
testcase_07 AC 217 ms
7,828 KB
testcase_08 AC 224 ms
7,904 KB
testcase_09 AC 232 ms
7,748 KB
testcase_10 AC 230 ms
7,908 KB
testcase_11 AC 233 ms
7,860 KB
testcase_12 AC 235 ms
7,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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