結果

問題 No.1271 初めての級数
ユーザー nagissnagiss
提出日時 2020-10-30 21:22:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 95 bytes
コンパイル時間 250 ms
コンパイル使用メモリ 87,248 KB
実行使用メモリ 76,840 KB
最終ジャッジ日時 2023-09-29 04:36:32
合計ジャッジ時間 2,286 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
76,492 KB
testcase_01 AC 87 ms
76,416 KB
testcase_02 AC 87 ms
76,668 KB
testcase_03 AC 87 ms
76,464 KB
testcase_04 AC 87 ms
76,840 KB
testcase_05 AC 86 ms
76,392 KB
testcase_06 AC 87 ms
76,472 KB
testcase_07 AC 87 ms
76,456 KB
testcase_08 AC 87 ms
76,432 KB
testcase_09 AC 87 ms
76,716 KB
testcase_10 AC 88 ms
76,396 KB
testcase_11 AC 89 ms
76,500 KB
testcase_12 AC 88 ms
76,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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