复赛一:成绩(score)

洛谷:P3954
OJ :P4955

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#include<bits/stdc++.h>
using namespace std;
int main(){	
    freopen("score.in","r",stdin);
    freopen("score.out","w",stdout);
    int a,b,c;
	cin>>a>>b>>c;
	cout<<a*0.2+b*0.3+c*0.5;
	return 0;
}
Scroll to Top