| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 47029 | zhangyanshuo | 均值 | C++ | Wrong Answer | 1 MS | 240 KB | 215 | 2024-05-11 18:05:55 |
#include<bits/stdc++.h> using namespace std; int main() { int n; double a; int i=1; int j=0; cin>>n; while(n>=i) { cin>>a; j+=a; i++; } cout<<fixed<<setprecision(4)<<j/n; return 0; }