| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 51612 | 张思存 | 求平均年龄 | C++ | Accepted | 1 MS | 248 KB | 259 | 2024-09-22 21:55:15 |
#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; }