| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 121564 | 徐浩天 | 计算平均数 | C++ | Wrong Answer | 1 MS | 268 KB | 268 | 2025-06-07 16:55:42 |
#include<bits/stdc++.h> using namespace std; int main() { int a[5],sum=0; float pj; for(int i=0;i<=4;i++){ cin>>a[i]; sum+=a[i]; } pj=float(sum)/5; printf("%.2f\n",pj); for(int i=0;i<4;i++) if(a[i]<pj) cout<<a[i]<<" "; return 0; }
------Input------
679 849 98 256 256
------Answer-----
427.60 679 849
------Your output-----
427.60 98 256