結果

問題 No.1271 初めての級数
ユーザー proriboneproribone
提出日時 2020-10-30 21:50:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 167 ms / 2,000 ms
コード長 90 bytes
コンパイル時間 295 ms
コンパイル使用メモリ 87,064 KB
実行使用メモリ 76,272 KB
最終ジャッジ日時 2023-09-29 05:52:39
合計ジャッジ時間 3,412 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 161 ms
75,720 KB
testcase_01 AC 159 ms
76,044 KB
testcase_02 AC 159 ms
75,648 KB
testcase_03 AC 167 ms
76,048 KB
testcase_04 AC 163 ms
76,148 KB
testcase_05 AC 163 ms
76,124 KB
testcase_06 AC 163 ms
76,272 KB
testcase_07 AC 166 ms
76,144 KB
testcase_08 AC 162 ms
76,152 KB
testcase_09 AC 162 ms
76,168 KB
testcase_10 AC 161 ms
76,228 KB
testcase_11 AC 161 ms
76,196 KB
testcase_12 AC 160 ms
75,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

k=int(input())

n=1
res=0

for i in range(10**7):
    res+=1/(n*(n+k))
    n+=1
print(res)
0