#include<iostream>
using namespace std;
int Count(double a[6],int n)
{int average,i,s=0,k=0;for(i=0;i<n;i++){s=s+a[i];}average=s/n;for(i=0;i<n;i++){if(a[i]>=average)k++;}return k;
}
int main()
{int i,k,n;cout<<"请输入数组的大小n:"<<endl;cin>>n;double a[100];cout<<"请输入n个数:"<<endl;for(i=0;i<n;i++){cin>>a[i];}cout<<"这组数中大于等于平均数的个数为:";cout<<Count(a,n)<<endl;return 0;
}