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

· · 题解

简单模拟题。

思路

将各奖项的奖金 \times 奖项数量之后 \div n 取平均数即可。

AC CODE

#include<bits/stdc++.h>
using namespace std;
int n,g,s,b;
int main(){
    cin>>n>>g>>s>>b;
    cout<<(g*7500+s*3000+b*1500)/n;
}