double。
```cpp
#include<bits/stdc++.h>
using namespace std;
int main(){
double n=2,sum=0,m;
double s;
cin>>s;
for(int i=1;sum<s;i++){
sum=sum+n;
n=n*0.98;
m=i;
}
cout<<m;
return 0;
}
```
by _zhy @ 2022-11-18 11:05:32
@[钟浩洋](/user/476921) 吐了我以为就改个s和sum就好了
by Czh116489 @ 2022-11-18 11:10:56