| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 69077 | 李明择 | 计算平均数 | C++ | Accepted | 1 MS | 276 KB | 305 | 2024-03-30 14:37:28 |
# include<bits/stdc++.h> using namespace std; int main(){ int a[6]; int n; double m=0; for(int i=1;i<=5;i++){ cin>>a[i]; m += a[i]; } printf("%.2lf\n",m/5.0); for(int i=1;i<=5;i++){ if(a[i]>(m/5.0)){ cout<<a[i]<<' '; } } return 0; }