题解 | 自由落体

自由落体

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)

全部评论

相关推荐

01-12 17:45
门头沟学院 Java
985废物一枚:就是问问你能不能接受北京的房租,hr也知道公司工资不高,大概率是要贴钱的
找实习记录
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务