这道题可以说是NOIP以来最简单的题目了
个人认为这道题只是考你会不会编程2333
直接上代码
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
double homework,test,big_test,zong;
cin>>homework>>test>>big_test;
zong=homework*0.2+test*0.3+big_test*0.5;
printf("%.lf",zong);//double可以满足精度 不会因为强制转换而扣分
return 0;
}
原文:https://www.cnblogs.com/nr386-blog/p/9193429.html