| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 30220 | lnx | 均值 | C++ | Accepted | 0 MS | 252 KB | 245 | 2023-11-04 15:54:47 |
#include<iostream> #include<iomanip> using namespace std; int main() { int n; double a,b=0; cin>>n; for(int i=0;i<n;i++) { cin>>a; b+=a; } double aver=b/n; cout << fixed << setprecision(4) << aver; return 0; }