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