| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 139880 | 李亭绪 | 计算平均数 | C++ | Accepted | 0 MS | 272 KB | 528 | 2025-12-10 20:03:09 |
#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.0; printf("%.2lf\n",n); for(int i=1;i<=5;i++){ if(s[i]>n){ cout<<s[i]<<' '; } } return 0; }