| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 164810 | 冉骏杰 | 计算平均数 | C++ | Wrong Answer | 1 MS | 264 KB | 316 | 2026-11-07 15:21:26 |
#include<iostream> using namespace std; long long x[10]; double f; int main() { for(int i = 1; i<=5; i++) { cin>>x[i]; } for(int i = 1; i<=5; i++) { f = f+x[i]; } f = f/5; printf("%.2lf",f); cout<<endl; for(int i = 1; i<=5; i++) { if(x[i] >= f){ cout<<x[i]; } } return 0 ; }
------Input------
679 849 98 256 256
------Answer-----
427.60 679 849
------Your output-----
427.60 679849