题解 | 自由落体
自由落体
https://www.nowcoder.com/practice/8d830694954e41e58e4818d53ae78333
H,S1,V,L,K,n=input().split()
H,S1,V,L,K,n=float(H),float(S1),float(V),float(L),float(K),int(n)
t1=((H-K)/5)**0.5
t2=(H/5)**0.5
cnt=0
for i in range(n):
if i<=(S1-V*t1+L)+0.00001 and i>=(S1-V*t2)-0.00001:
cnt+=1
print(cnt)