题解 | #求小球落地5次后所经历的路程和第5次反弹的高度#
求小球落地5次后所经历的路程和第5次反弹的高度
https://www.nowcoder.com/practice/2f6f9339d151410583459847ecc98446
h = float(input())
total = h
bounce = h/2
for i in range(4):
total=total+h
h=h/2
bounce=bounce/2
print(total)
print(bounce)


