提交时间:2024-09-22 21:55:15
运行 ID: 51612
#include <bits/stdc++.h> using namespace std; int main() { int n; double s = 0; cin >> n; for (int i = 1; i <= n; ++i) { int age; cin >> age; s += age; } printf("%.2lf", s / n); return 0; }