| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 77961 | sh25_yezy | 求平均年龄 | C++ | Accepted | 0 MS | 248 KB | 223 | 2025-12-26 15:08:45 |
#include<bits/stdc++.h> using namespace std; int main (){ int n,old; double sum=0; cin>>n; for(int i=0;i<n;i++){ cin>>old; sum+=old; } sum=sum/n; cout<<fixed<<setprecision(2)<<sum; return 0; }