```python h = int(input()) total_distance = h # 第一次下落的距离 next_height = h / 2 # 第一次反弹的高度 for i in range(2, 11): total_distance += next_height * 2 next_height /= 2 print(total_distance) print(next_height) ``` [2024-12-02 20:29:04 | AI写代码神器 | 159点数解答]