水题。
先算出总钱数然后除以人数即可。
#include<bits/stdc++.h>
using namespace std;
int n,g,s,b;
int main(){scanf("%d%d%d%d",&n,&g,&s,&b);printf("%d",(g*7500+s*3000+b*1500)/n);return 0;
}
水题。
先算出总钱数然后除以人数即可。
#include<bits/stdc++.h>
using namespace std;
int n,g,s,b;
int main(){scanf("%d%d%d%d",&n,&g,&s,&b);printf("%d",(g*7500+s*3000+b*1500)/n);return 0;
}