| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146160 | 刘杨国卿 | 计算平均数 | C++ | Accepted | 1 MS | 272 KB | 248 | 2026-01-27 12:17:00 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[100]; double m=0; for(int i=0;i<5;i++){ cin>>a[i]; m+=a[i]; } printf("%.2f\n",m/5); for(int i=0;i<5;i++){ if(a[i]>m/5) cout<<a[i]<<" "; } return 0; }