30262023-02-08 17:36:36xxxKövek (100 pont)cpp11Wrong answer 0/10027ms4844 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
    int n;
    cin >> n;
    int k;
    int sums[n], sum = 0;
    for (int i = 0; i < n; i++){
        cin >> k;
        sum += k;
        sums[i] = sum;
    }

    int atlag = sum / n;
    int ans = 0;
    for (int i = 1; i <= n; i++) {
        if (sums[i] != sum * i){
            ans++;
        }
    }

    cout << ans;


    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/100
1Wrong answer0/03ms1876 KiB
2Wrong answer0/027ms2888 KiB
3Wrong answer0/53ms2364 KiB
4Wrong answer0/53ms2548 KiB
5Wrong answer0/52ms2632 KiB
6Wrong answer0/53ms2756 KiB
7Wrong answer0/53ms2848 KiB
8Wrong answer0/53ms2924 KiB
9Wrong answer0/73ms3048 KiB
10Wrong answer0/73ms3132 KiB
11Wrong answer0/83ms3260 KiB
12Wrong answer0/83ms3344 KiB
13Wrong answer0/83ms3444 KiB
14Wrong answer0/84ms3688 KiB
15Wrong answer0/810ms4124 KiB
16Wrong answer0/824ms4548 KiB
17Wrong answer0/827ms4844 KiB