@[AquaRio](/space/show?uid=145596)
by pzc2004 @ 2019-10-16 21:11:11
@[1015bwh](/space/show?uid=269020)
>希望更丰富的展现?使用Markdown
by zr太弱了 @ 2019-10-16 21:11:43
希望更丰富的展现?使用Markdown
by 血色黄昏 @ 2019-10-16 21:11:55
我是个不懂OI是什么的初二蒟蒻
by zr太弱了 @ 2019-10-16 21:12:05
希望更丰富的展现?使用Markdown
by qian_shang @ 2019-10-16 21:12:20
```cpp
#include<stdio.h>
using namespace std;
int main() {
int x;
double n,s;
scanf("%d",&x);
if(x<=150) {
n=x0.4463;
}
if(x>150&&x<=400) {
n=1500.4463+(x-150)0.4663;
}
if(x>400) {
n=1500.4463+2500.4663+(x-400)0.5663;
}
n=int ((n*10)+0.5)/10.0;
printf("%.1lf",n);
return 0;
}
```
by zr太弱了 @ 2019-10-16 21:12:44
@[1015bwh](/space/show?uid=269020)
> n=x0.4463;
您的赋值语句是错的
by zr太弱了 @ 2019-10-16 21:13:45
https://cyaron.blog.luogu.org/guan-yu-zui-jin-ge-zhong-wu-yi-yi-dai-ma-tao-lun-post
by pzc2004 @ 2019-10-16 21:13:51
>n=1500.4463+(x-150)0.4663;
>n=1500.4463+2500.4663+(x-400)0.5663;
这里好像也是
by zr太弱了 @ 2019-10-16 21:14:50
@[zr太弱了](/space/show?uid=143661) 这个好像是因为`*`被md吞掉了的原因QAQ
by Bbaka @ 2019-10-16 21:17:59