Run ID:106341

提交时间:2025-01-16 10:20:19

#include<bits/stdc++.h> using namespace std; int main() { int d; d = 0; int c; cin>>c; int f=0; int a[c]; double b; double s; s = 0; for (int i = 0; i <= c-1; i++) { cin >> a[i]; } for (int i = 0; i <= c-1; i++) { s = s + a[i]; } b = s / 5; cout<<endl; for (int i = 0; i<=4; i++) { if (a[i] > b) { f=f+1; } } cout<<f; return 0; }