python

P1035 [NOIP2002 普及组] 级数求和

dqsfzhanghanyuan @ 2024-05-24 16:54:51

k=int(input()) s=1 i=1 while s<=k: s+=1/i i+=1 print(i)


|