``int n=2;`` 改成 ``double n=2;``
by jiangtaizhe001 @ 2021-12-30 19:29:01
```
#include<bits/stdc++.h>
using namespace std;
int main(){
double s,n;
cin>>s;
n=ceil(log(1-0.01*s)/log(0.98));
cout<<n;
return 0;
}
```
by 2101yanzihan @ 2021-12-30 19:38:14
谢谢!
by wsdyz2010 @ 2021-12-31 18:54:11