#include<iostream>#include<cstdio>
using namespace std;intmain(){
int x, y, a, b, c, ans;
cin >> x >> y >> a >> b >> c;if(a+b >2*c){
if(x > y) ans = y*2*c +(x-y)*a;else ans = x*2*c +(y-x)*b;}else{
ans = x*a + y*b;}
cout << ans;return0;}
选科组合
#include<iostream>#include<cstdio>#include<algorithm>
using namespace std;int a[6];intmain(){
for(int i =0; i <6; i ++) cin >> a[i];sort(a, a+6);
cout << a[5]+ a[4]+ a[3];return0;}
进制回文
#include<iostream>#include<cstdio>
using namespace std;i