| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 144415 | 岑思烁 | 计算平均数 | C++ | Wrong Answer | 0 MS | 272 KB | 254 | 2026-01-22 12:13:53 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[6],c=0; for(int i = 1;i<=5;i++){ cin>>a[i]; c+=a[i]; } printf("%.2f\n",c/5.0); for(int i = 1;i<=5;i++){ if(a[i]<c/5.0){ cout<<a[i]<<" "; } } return 0; }
------Input------
679 849 98 256 256
------Answer-----
427.60 679 849
------Your output-----
427.60 98 256 256