結果

問題 No.1271 初めての級数
ユーザー nagissnagiss
提出日時 2020-10-30 21:22:40
言語 PyPy3
(7.3.8)
結果
AC  
実行時間 111 ms / 2,000 ms
コード長 95 bytes
コンパイル時間 270 ms
使用メモリ 81,268 KB
最終ジャッジ日時 2023-02-21 10:29:34
合計ジャッジ時間 2,835 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 106 ms
80,948 KB
testcase_01 AC 104 ms
80,676 KB
testcase_02 AC 106 ms
80,988 KB
testcase_03 AC 106 ms
80,780 KB
testcase_04 AC 107 ms
81,144 KB
testcase_05 AC 105 ms
80,756 KB
testcase_06 AC 107 ms
80,672 KB
testcase_07 AC 109 ms
81,268 KB
testcase_08 AC 108 ms
80,716 KB
testcase_09 AC 108 ms
80,784 KB
testcase_10 AC 109 ms
80,972 KB
testcase_11 AC 111 ms
80,628 KB
testcase_12 AC 108 ms
80,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

K = int(input())
ans = 0
for n in range(1, 2*10**6):
    ans += 1.0 / (n * (n + K))
print(ans)
0