| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 78144 | sh25_shengmy | 均值 | C++ | 通过 | 1 MS | 252 KB | 232 | 2025-12-26 15:24:42 |
#include <bits/stdc++.h> using namespace std; int main() { double n; cin >> n; double a,tot; for(int i = 0;i<n;i++) { cin >> a; tot+=a; } tot= tot/n; cout <<fixed<<setprecision(4) <<tot<<endl; return 0; }