#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int a[n];
int sum=0;
for(auto &i :a){
cin>>i;
sum+=i;
}
cout<<*max_element(a,a+n)<<endl;
cout<<*min_element(a,a+n)<<endl;
float t=sum*1.0/n;
printf("%.2f",t);
return 0;
}
lanqiao OJ497 成绩分析
于 2024-02-01 20:47:33 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)