0分代码 数据有毒 求大佬帮助

P3954 [NOIP2017 普及组] 成绩

没有插入代码,告辞
by Quank123Wip @ 2018-07-23 10:16:19


您输出那边是不是没有乘号,或者试试看在输出的时候强转实数类型 比如 ``` printf("%.0f",a*0.2+b*0.3+c*0.5); ```
by 两年打铁 @ 2018-07-23 10:19:22


@[Ouyyx2002](/space/show?uid=78579)
by 两年打铁 @ 2018-07-23 10:19:33


@[CSJ1](/space/show?uid=87026) 写了乘号,发现问题在*0.2这类上,改成*2/10就好了
by Ouyyx2002 @ 2018-07-23 12:48:26


@[Esport_P1ayErX](/space/show?uid=73552) ```cpp #include<bits/stdc++.h> using namespace std; int a,b,c; int main() { scanf("%d %d %d",&a,&b,&c); printf("%d",a*0.2+b*0.3+c*0.5); return 0; } ``` 啊大佬我的错
by Ouyyx2002 @ 2018-07-23 12:50:36


```cpp #include<bits/stdc++.h> using namespace std; int a,b,c; int main() { scanf("%d %d %d",&a,&b,&c); printf("%d",a*0.2+b*0.3+c*0.5); return 0; } ```
by Ouyyx2002 @ 2018-07-23 12:51:05


```c #include<bits/stdc++.h> using namespace std; int main() { int a,b,c,sum; scanf("%d %d %d",&a,&b,&c); sum=a*0.2+b*0.3+c*0.5; printf("%d",sum); return 0; } ``` 真的不能再继续了吗
by 日天君 @ 2018-08-06 19:04:06


@[隋正昊](/space/show?uid=37556) 不能赋值给sum的,赋值NOIP只能得60分或30分
by 谦谦君子 @ 2018-08-08 18:42:19


```cpp #include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; cout<<a*0.2+b*0.3+c*0.5; return 0; } ``` 这样写没毛病
by 谦谦君子 @ 2018-08-08 18:43:27


@[谦谦君子](/space/show?uid=69036) 回问大佬:WHY 为啥子是酱紫嘞
by 日天君 @ 2018-08-09 22:24:26


| 下一页