题解 | #求小球落地5次后所经历的路程和第5次反弹的高度#
求小球落地5次后所经历的路程和第5次反弹的高度
http://www.nowcoder.com/practice/2f6f9339d151410583459847ecc98446
while True:
try:
s0 = int(input())
s_all = (2*(1/2+1/4+1/8+1/16) + 1 )*s0
h5 = (1/32)*s0
print(round(s_all, 6))
print(round(h5, 6))
except:
break