AC了。```cpp
#include<bits/stdc++.h>
using namespace std;
int main(){
double m, n=0,s=2,b=0;
cin>>m;
while(b<m){
b+=s;
n++;
s*=0.98;
}
cout<<n<<endl;
return 0;
}
```
by makeway @ 2024-08-06 14:36:17
@[makeway](/user/1413309) ```cpp
#include<bits/stdc++.h>
using namespace std;
int main()
{
double s,ss=0,v=2,t=0;
cin>>s;
while(ss<s)
{
ss+=v;
v=v*0.98;
t++;
}
cout<<t;
return 0;
}
```
~~关注一下吧~~
by guoyanwei120223 @ 2024-08-13 17:53:09