Run ID:106961

提交时间:2025-01-17 10:21:36

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 / c; for (int i = 0; i <= 4; i++) { if (a[i] > b) { f ++; } } cout << f; return 0; }