| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 147548 | 何兴驰 | 计算平均数 | C++ | Wrong Answer | 0 MS | 272 KB | 254 | 2026-02-06 10:12:04 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[6]; double h; for(int i=1;i<6;i++){ cin>>a[i]; h+=a[i]; } h=h/5; printf("%.2f",h); cout<<endl; for(int b=1;b<6;b++){ if(a[b]>h){ cout<<a[b]<<" "; } } }
------Input------
679 849 98 256 256
------Answer-----
427.60 679 849
------Your output-----
-nan