Run ID:151441
提交时间:2026-04-12 12:36:17
#include<bits/stdc++.h> using namespace std; int main(){ int a[100],b,f=0; cin>>b; double s=0,h=0; for(int i=1;i<=b;i++){ cin>>a[i]; } for(int i=1;i<=b;i++){ s+=a[i]; } h=s/b; for(int i=1;i<=b;i++){ if(a[i]>h){ f++; } } cout<<f; return 0; }