#include<bits/stdc++.h> using namespace std; int a,b,r,v,m,s; int main(){ scanf("%d%d%d%d%d",&a,&b,&r,&v,&m); s=b*(r+v+m)+a*(4*r+6*v+6*m); printf("%d",s); return 0; }
温馨提示:这题我在比赛做了AC,在这里做了WA,真是俩极端!