Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
119199 | 韩潞琪 | 计算平均数 | C++ | Accepted | 1 MS | 272 KB | 257 | 2025-05-17 10:21:07 |
#include<bits/stdc++.h> using namespace std; int main() { int a[5],s=0; for(int i=0;i<5;i++){ cin>>a[i]; s+=a[i]; } printf("%.2f\n",s*1.0/5); for(int i=0;i<5;i++) if(a[i]>s*1.0/5) cout<<a[i]<<' '; return 0; }