結果

問題 No.1271 初めての級数
ユーザー ssmkzkssmkzk
提出日時 2020-11-21 01:40:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 251 ms / 2,000 ms
コード長 90 bytes
コンパイル時間 246 ms
コンパイル使用メモリ 10,364 KB
実行使用メモリ 7,896 KB
最終ジャッジ日時 2023-09-30 20:27:24
合計ジャッジ時間 4,358 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 233 ms
7,696 KB
testcase_01 AC 251 ms
7,812 KB
testcase_02 AC 250 ms
7,700 KB
testcase_03 AC 251 ms
7,896 KB
testcase_04 AC 234 ms
7,808 KB
testcase_05 AC 249 ms
7,844 KB
testcase_06 AC 230 ms
7,700 KB
testcase_07 AC 231 ms
7,688 KB
testcase_08 AC 238 ms
7,860 KB
testcase_09 AC 248 ms
7,816 KB
testcase_10 AC 232 ms
7,780 KB
testcase_11 AC 235 ms
7,836 KB
testcase_12 AC 250 ms
7,812 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

k = int(input())
ans = 0

for i in range(1,1000000):
    ans += 1/(i*(i + k))

print(ans)
0