995

wc040 2025-01-15 11:32:42 2

#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 << m << ' '; cout <<fixed<<setprecision(5)<< m / n; }

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

共 2 条回复

root 站长

m 要输出整数

wc040