python wa
查看原帖
python wa
304380
LοgεnΓos_707楼主2023/3/23 22:54
k = int(input())
lst = [1]
for i in range(0, len(lst)):
    n = int(len(lst))
    if sum(lst) <= k:
        lst = lst.append(1.0 / (n + 1.0))
    else:
        print(n)
2023/3/23 22:54
加载中...