21302 - 成绩统计

#include<bits/stdc++.h>
using namespace std;
int n,s[1001],ans;
double sum,avg;
int main(){
  	cin>>n;
  	for(int i=1;i<=n;i++){
    	cin>>s[i];
      	sum+=s[i];
    }
  	avg=sum/n;
  	for(int i=1;i<=n;i++){
    	if(s[i]>avg) ans++;
    }
  	cout<<ans;
	return 0;
}