#include<bits/stdc++.h>//万能头
using namespace std;
double k,s,x,n;//高精度定义变量
int main()
{
cin>>n;//输入
for(int i=1;i<=n;i++){//for循环
cin>>x;//输入
s=s+x;
}
k=s/n;
cout<<round(k);//四舍五入
}
4954:平均年龄(2020合肥蜀山)
最新推荐文章于 2025-04-30 16:40:07 发布