| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 162101 | 格林老师 | 计算平均数 | C++ | Accepted | 1 MS | 272 KB | 378 | 2026-10-12 21:37:19 |
#include <bits/stdc++.h> using namespace std; int main() { int a[6],sumi=0; for (int i=1;i<6;i++){ cin>>a[i]; sumi+=a[i]; } double ave=sumi*1.0/5; cout<<fixed<<setprecision(2)<<ave<<endl; for (int i=1;i<6;i++){ if (a[i]>ave){ cout<<a[i]<<" "; } } cout<<endl; return 0; }