"""
P1035 [NOIP2002 普及组] 级数求和(python3实现)02
https://www.luogu.com.cn/problem/P1035
"""
i=1
ans=0
k=int(input())
while 1:
ans+=1/i
#i+=1
if ans>k*1.0:
print(i)
break
i+=1
P1035 [NOIP2002 普及组] 级数求和(python3实现)
最新推荐文章于 2024-06-21 17:14:10 发布