一:题目 二:上码 #include<bits/stdc++.h> using namespace std;int main() {int n;cin >> n;vector<int> v(n,0);for (int i = 0; i < n; i++) {cin >> v[i];}sort(v.begin(),v.end());double sum = accumulate(v.begin(),v.end(),0);double ans = sum/n;cout << v[n-1] << endl;cout << v[0] << endl;printf("%.2f",ans); }