长大后,我一定要买一台能看见别人代码的电脑。
by WA_sir @ 2023-03-08 19:50:00
求助不放代码,就跟结账时没带钱一样
by SovLite @ 2023-03-08 19:51:56
@[WZYklbc](/user/770812) 发下您代码谢谢
by codejiahui @ 2023-03-08 19:59:17
@[codejiahui](/user/512407) OK稍等
by WZYklbc @ 2023-03-09 20:07:58
给大家添麻烦了!谁能教教我如何才能发上去代码?我第一次用,不会搞……
by WZYklbc @ 2023-03-09 20:21:38
@[WZYklbc](/user/770812) 看一下:
"```cpp"
"……(代码)"
"```"
结果:
```cpp
代码代码代码代码代码代码
```
by codejiahui @ 2023-03-09 20:33:46
@[WZYklbc](/user/770812) 或者点上面那一横栏的"</>",选择代码类型,复制代码到底下。
by codejiahui @ 2023-03-09 20:37:11
```
#include<bits/stdc++.h>
using namespace std;
int main()
{
double s,sum=0;
int n=0;
cin>>s;
while(sum<s)
{
sum=sum+s;
s=s/100*98;
n++;
}
cout<<n;
return 0;
}
```
by WZYklbc @ 2023-03-11 20:04:50
@[codejiahui](/user/512407) 谢谢您
by WZYklbc @ 2023-03-11 20:06:12
@[WZYklbc](/user/770812) 你看看你这段:
```cpp
while(sum<s)
{
sum=sum+s;
s=s/100*98;
n++;
}
```
模拟一下第一遍:
- sum = sum + s ->sum = s
- s = s / 100 * 98 -> s < sum
- n++;->n = 1
- sum<s?yes
读题!!!!!
```已知小玉第一步能游 2 米,```
你给弄成了
```已知小玉第一步能游 s 米,```
by codejiahui @ 2023-03-11 21:15:01