题解:P16813 [蓝桥杯 2026 国 Python B] 平均年龄
名员工的平均年龄为 岁,共 岁。 人的平均年龄为 岁,共 岁。则 人的总岁数就是 岁,平均岁数就是 。
AC Code
#include<bits/stdc++.h>
using namespace std;
signed main(){
cout<<(300*37-50*(26+21))/250.0<<endl;
return 0;
}名员工的平均年龄为 岁,共 岁。 人的平均年龄为 岁,共 岁。则 人的总岁数就是 岁,平均岁数就是 。
#include<bits/stdc++.h>
using namespace std;
signed main(){
cout<<(300*37-50*(26+21))/250.0<<endl;
return 0;
}