56132023-08-08 17:11:08TomaSajtKövek (100 pont)cpp17Wrong answer 27/10026ms4040 KiB
#include <iostream>
#include <vector>

using namespace std;

int main() {
  int n;
  cin >> n;

  long long ossz = 0;
  vector<int> lista(n);

  for (int& elem : lista) {
    cin >> elem;
    ossz += elem;
  }

  int atlag = ossz / n;

  int nagyobb_osszeg = 0;
  for (int elem : lista) {
    if (elem > atlag) {
      nagyobb_osszeg += 1;
    }
  }
  cout << nagyobb_osszeg;
}
SubtaskSumTestVerdictTimeMemory
base27/100
1Accepted0/03ms1944 KiB
2Wrong answer0/026ms2888 KiB
3Accepted5/52ms2176 KiB
4Accepted5/53ms2300 KiB
5Wrong answer0/52ms2388 KiB
6Wrong answer0/52ms2508 KiB
7Accepted5/53ms2756 KiB
8Accepted5/53ms2840 KiB
9Accepted7/73ms3052 KiB
10Wrong answer0/72ms3140 KiB
11Wrong answer0/82ms3268 KiB
12Wrong answer0/83ms3216 KiB
13Wrong answer0/83ms3372 KiB
14Wrong answer0/84ms3364 KiB
15Wrong answer0/810ms3512 KiB
16Wrong answer0/823ms3644 KiB
17Wrong answer0/825ms4040 KiB