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

using namespace std;

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

  int 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/03ms1812 KiB
2Wrong answer0/026ms3276 KiB
3Accepted5/53ms2680 KiB
4Accepted5/53ms2916 KiB
5Wrong answer0/53ms3228 KiB
6Wrong answer0/53ms3440 KiB
7Accepted5/53ms3568 KiB
8Accepted5/53ms3700 KiB
9Accepted7/72ms3916 KiB
10Wrong answer0/72ms3996 KiB
11Wrong answer0/82ms4008 KiB
12Wrong answer0/83ms4084 KiB
13Wrong answer0/83ms4012 KiB
14Wrong answer0/84ms4144 KiB
15Wrong answer0/810ms4348 KiB
16Wrong answer0/823ms4876 KiB
17Wrong answer0/826ms5792 KiB