38532023-03-03 12:11:36MatematikaKövek (100 pont)cpp17Wrong answer 0/10026ms4760 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==0)
        {
            lepesek++;
        }
    }
    lepesek=n-lepesek;
    cout << lepesek;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/100
1Wrong answer0/03ms1960 KiB
2Wrong answer0/026ms2932 KiB
3Wrong answer0/52ms2244 KiB
4Wrong answer0/52ms2352 KiB
5Wrong answer0/53ms2564 KiB
6Wrong answer0/53ms2808 KiB
7Wrong answer0/52ms2892 KiB
8Wrong answer0/53ms3104 KiB
9Wrong answer0/73ms3228 KiB
10Wrong answer0/72ms3588 KiB
11Wrong answer0/82ms3736 KiB
12Wrong answer0/83ms3696 KiB
13Wrong answer0/83ms3768 KiB
14Wrong answer0/84ms4036 KiB
15Wrong answer0/810ms4244 KiB
16Wrong answer0/823ms4452 KiB
17Wrong answer0/826ms4760 KiB