Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5111 | 黄言岐 | 求点积 | C++ | Wrong Answer | 0 MS | 268 KB | 504 | 2024-11-02 14:39: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(){ int s=0,a[5]; for (int i;i<5;i++){ cin>>a[i]; s+=a[i]; } double average=s*1.0/5; printf("%.2lf\n",average); for(int i=0;i<5;i++){ if(a[i]>average) cout<<a[i]<<" "; } return 0; }
------Input------
14 28 89 50 69 8 7 82 83 74 58 38 13 91 91 23 38 31 29 20 56 22 44 28 93 8 87 3 3
------Answer-----
23032
------Your output-----
0.00 14 28 89 50 69