```cpp
#include<stdio.h>
int main()
{
double d=0,step=2;
int cout=0;
scanf("%lf",&d);//This
do
{
d-=step;
step*=0.98;
cout++;
}while(d>0);
printf("%d",cout);
return 0;
}
```
by DESTRUCTION_3_2_1 @ 2022-03-27 21:05:52
@[Dyc大大吖](/user/537520)
谢谢谢谢大佬!
by DongpoSushi @ 2022-03-27 21:08:23
@[DongpoSushi](/user/620692) 属于是眼瞎了
by DongpoSushi @ 2022-03-27 21:09:28
```cpp
#include<iostream>
using namespace std;
int main()
{
double S, T = 0.0;
int ans = 0;
cin >> S;
double V = 2;
while(T <= S)
{
T = T+V;
V = V*0.98;
ans++;
}
cout << ans << endl;
return 0;
}
by yuenze0416 @ 2022-05-22 18:23:15