提交时间:2025-12-26 14:26:26
运行 ID: 77553
#include <bits/stdc++.h> using namespace std; int main() { double n; cin >> n; double a,tot; for(int i = 0;i<n;i++) { cin >> a; tot+=a; } cout <<fixed<<setprecision(0) <<tot<<" "; cout <<fixed<<setprecision(5) <<tot/n<<endl; return 0; }