| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150576 | 杜雨轩 | 计算平均数 | C++ | Wrong Answer | 1 MS | 272 KB | 280 | 2026-03-28 17:37:56 |
#include<iostream> using namespace std; int main() { double n,c=0; int a[5]; for(int i=1; i<=5; i++) { cin>>n; a[i]=n; c=c+a[i]; } double p=c/5.0; printf("%.2lf\n",&p); for(int i=1; i<=5; i++) { if(a[i]>p) { cout<<a[i]<<" "; } } return 0; }
------Input------
679 849 98 256 256
------Answer-----
427.60 679 849
------Your output-----
0.00 679 849