Run ID:116134
提交时间:2025-04-06 14:19:03
#include<iostream> using namespace std; int main(){ int a[110],b,g=0,n=0,f=0; cin>>b; for(int k=1;k<=b;k++){ cin>>a[k]; g+=a[k]; } n=g*1.0/b; for(int k=1;k<=b;k++){ if(a[k]>n){ f++; } } cout<<f; return 0; }