結果

問題 No.1271 初めての級数
ユーザー akitsugu777akitsugu777
提出日時 2020-12-14 16:35:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 276 ms / 2,000 ms
コード長 84 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 11,688 KB
実行使用メモリ 10,028 KB
最終ジャッジ日時 2023-10-20 05:05:37
合計ジャッジ時間 4,554 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 270 ms
10,028 KB
testcase_01 AC 271 ms
10,028 KB
testcase_02 AC 275 ms
10,028 KB
testcase_03 AC 269 ms
10,028 KB
testcase_04 AC 267 ms
10,028 KB
testcase_05 AC 276 ms
10,028 KB
testcase_06 AC 265 ms
10,028 KB
testcase_07 AC 263 ms
10,028 KB
testcase_08 AC 265 ms
10,028 KB
testcase_09 AC 270 ms
10,028 KB
testcase_10 AC 267 ms
10,028 KB
testcase_11 AC 264 ms
10,028 KB
testcase_12 AC 267 ms
10,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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