| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 139875 | 李茗宇 | 计算平均数 | C++ | Wrong Answer | 0 MS | 272 KB | 522 | 2025-12-10 19:57:47 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ double n=0; int m=0; int s[6]; for(int i=1;i<=5;i++){ cin>>s[i]; m+=s[i]; } n=m/5; printf("%.2lf\n",n); for(int i=1;i<=5;i++){ if(s[i]>n){ cout<<s[i]<<' '; } } return 0; }
------Input------
679 849 98 256 256
------Answer-----
427.60 679 849
------Your output-----
427.00 679 849