题解 P3954 【成绩】
DEV C++ 题解
简直是刚学c++一天那种水平的题
#include<iostream>
#include<cstdio>
#include<cmath>
#include<al
gorithm>
using namespace std;//头文件,主函数
int main()
{
int a,b,c;
cin>>a>>b>>c;
a*=20;
a/=100;
b*=30;
b/=100;
c*=50;
c/=100;//%在c++中表示取余,so...
cout<<a+b+c;//不会的做P1001吧...
return 0;
}