| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 69572 | sh25_ganzy | 求平均年龄 | C++ | Accepted | 0 MS | 248 KB | 248 | 2025-10-11 15:23:49 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; float sum; cin>>n; int a[n]; for(int i=0;i<n;i++){ cin>>a[i]; sum+=a[i]; } cout<<fixed<<setprecision(2)<<sum/n; return 0; }