@[huangjunxi012](/user/666276)
```python
x=float(input())
tot,a,ans=2.0,2.0,1
while tot<x:
a=a*0.98
tot=tot+a
ans=ans+1
print(int(ans))
```
by lsj2009 @ 2022-01-19 08:24:09
$tot$ 表示 $a-ans$ 走的距离之和,$a$ 表示第 $ans$ 步走多远,$ans$ 表示当前走的步数。
by lsj2009 @ 2022-01-19 08:27:14
@[huangjunxi012](/user/666276)
```python
x=float(input())
a=2
bushu=0
while x>0:
x=x-a
a=a*0.98
bushu+=1
print(bushu)
```
by EC75 @ 2022-01-19 09:18:25
谢谢大佬们的帮助
by hjx100825 @ 2022-03-04 21:21:32