Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
9825 | jiabokai | 均值 | C++ | Accepted | 0 MS | 240 KB | 223 | 2023-02-17 21:30:22 |
#include<bits/stdc++.h> 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; }