题解 | #求小球落地5次后所经历的路程和第5次反弹的高度#
求小球落地5次后所经历的路程和第5次反弹的高度
https://www.nowcoder.com/practice/2f6f9339d151410583459847ecc98446
H1 = int(input()) H2 = H1 / 2 H3 = H2 / 2 H4 = H3 / 2 H5 = H4 / 2 H6 = H5 / 2 su = H1 + 2 * (H2 + H3 + H4 + H5) print(su) print(H6)