@[zhangjunx](/user/945790)
你这一行
```cpp
yy == yy * 0.98;
```
多打了个=
by rnf5114 @ 2023-05-07 11:19:08
```
#include <bits/stdc++.h>
using namespace std;
double cnt,a, yy = 2;
int o=0;
int main() {
cin >> a;
while (cnt < a) {
cnt+= yy;
yy = yy /100*98;
o++;
}
cout << o<<endl;
return 0;
}
```
@[zhangjunx](/user/945790)
by Neji0907_qwq @ 2023-05-07 11:20:17