Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
112152 | 李明秦 | 计算平均数 | C++ | Wrong Answer | 1 MS | 208 KB | 308 | 2025-03-08 15:13:09 |
#include<cstdio> int main(){ int b=0,a[10000]; double d; for(int i=0;i<5;i++){ scanf("%d",&a[i]); } for(int j=0;j<5;j++){ b+=a[j]; } d=b/5; printf("%.2lf ",d);printf("\n"); for(int c=0;c<5;c++){ if(a[c]>d){ printf("%d ",a[c]); } } return 0; }
------Input------
679 849 98 256 256
------Answer-----
427.60 679 849
------Your output-----
427.00 679 849