a的值没有改变
by FzoG @ 2022-07-11 10:14:28
@[一笙倾情](/user/235996)
谢谢
by wanyuanshenma @ 2022-07-11 10:17:25
标准满分代码:
```cpp
#include <bits/stdc++.h>
using namespace std;
int main() {
float x,d=0.0,s=2,ans=0;
cin>>x;
while(d<x) {//循环,萌新有可能看不懂
d+=s;
s=s/100*98;//%98的操作
ans++;//步数增加
}
cout<<ans;
}
```
严禁抄袭,仅供参考!
by jyz120609 @ 2022-07-15 11:17:27