38542023-03-03 12:12:27MatematikaKövek (100 pont)cpp17Wrong answer 5/10026ms4340 KiB
#include <bits/stdc++.h>

using namespace std;

int main()
{
    int n;
    int atlag;
    int lepesek=0;
    int osszeg=0;
    cin >> n;
    vector<int> vec(n);
    for(int i=0; i<n ; i++)
    {
        cin >> vec[i];
        atlag=atlag+vec[i];
    }
    atlag=atlag/n;
    for(int i=0; i<n; i++)
    {
        osszeg=osszeg+vec[i];
        if(osszeg=atlag*i+1)
        {
            lepesek++;
        }
    }
    lepesek=n-lepesek;
    cout << lepesek;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base5/100
1Wrong answer0/03ms1684 KiB
2Wrong answer0/026ms2632 KiB
3Accepted5/53ms2156 KiB
4Wrong answer0/53ms2288 KiB
5Wrong answer0/53ms2496 KiB
6Wrong answer0/52ms2584 KiB
7Wrong answer0/52ms2808 KiB
8Wrong answer0/52ms2896 KiB
9Wrong answer0/73ms2940 KiB
10Wrong answer0/73ms2916 KiB
11Wrong answer0/83ms3132 KiB
12Wrong answer0/83ms3340 KiB
13Wrong answer0/83ms3572 KiB
14Wrong answer0/84ms3696 KiB
15Wrong answer0/810ms3864 KiB
16Wrong answer0/824ms3944 KiB
17Wrong answer0/826ms4340 KiB