题解:P16208 [ECUSTPC 2025] 金色走廊

· · 题解

输出 \frac {g \times 7500 + s \times 3000 + b\times 1500}{n} 即可。

#include<bits/stdc++.h>
#define int long long
using namespace  std;
int n,g,s,b;
signed main(void){
    ios::sync_with_stdio(0);
    cin.tie(0);cout.tie(0);
    cin>>n>>g>>s>>b;
    cout<<(g*7500+s*3000+b*1500)/n<<endl;
    exit(0);
}