k = int(input())
n = 0
sn = 0
while sn <= k:
n += 1
sn += 1/n
print(n)
【无标题】P1035 [NOIP2002 普及组] 级数求和 python题解
最新推荐文章于 2023-10-26 16:54:14 发布
k = int(input())
n = 0
sn = 0
while sn <= k:
n += 1
sn += 1/n
print(n)