995!995!^.^

lyh198 波风水门 2024-09-07 14:50:54 7

#include <bits/stdc++.h> using namespace std; int main() { double n, m, t; cin >> n; m = 0; for (int i = 1; i <= n; i++) { cin >> t; m += t; } cout << setw(5) << m << ' '; cout << setw(5) << m / n; }

{{ vote && vote.total.up }}