题解 | #求小球落地5次后所经历的路程和第5次反弹的高度#
求小球落地5次后所经历的路程和第5次反弹的高度
https://www.nowcoder.com/practice/2f6f9339d151410583459847ecc98446
h = int(input()) print(h + (h/2*2) + (h/4*2) + (h/8*2) + (h/16*2)) print(h/32)
求小球落地5次后所经历的路程和第5次反弹的高度
https://www.nowcoder.com/practice/2f6f9339d151410583459847ecc98446
h = int(input()) print(h + (h/2*2) + (h/4*2) + (h/8*2) + (h/16*2)) print(h/32)
相关推荐