15832022-11-28 15:48:05sarminKövek (100 pont)cpp17Wrong answer 27/10025ms4556 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {

	int N;
	cin >> N;
	vector<int> K(N);
	int sum = 0;
	for (int i = 0; i < N; i++) {
		cin >> K[i];
		sum += K[i];
	}

	int valami = sum / N, valami2 = 0;
	for (int i = 0; i < N; i++) {
		if (K[i] > valami) {
			valami2++;
		}
	}

	cout << valami2 << "\n";

	return 0;
}
SubtaskSumTestVerdictTimeMemory
base27/100
1Accepted0/03ms1812 KiB
2Wrong answer0/025ms2712 KiB
3Accepted5/52ms2212 KiB
4Accepted5/52ms2408 KiB
5Wrong answer0/52ms2620 KiB
6Wrong answer0/52ms2692 KiB
7Accepted5/52ms2824 KiB
8Accepted5/52ms3024 KiB
9Accepted7/72ms3228 KiB
10Wrong answer0/72ms3432 KiB
11Wrong answer0/82ms3504 KiB
12Wrong answer0/82ms3632 KiB
13Wrong answer0/83ms3768 KiB
14Wrong answer0/84ms3752 KiB
15Wrong answer0/89ms4160 KiB
16Wrong answer0/821ms4164 KiB
17Wrong answer0/825ms4556 KiB