30462023-02-08 20:17:32xxxKártya (80 pont)cpp14Wrong answer 5/803ms3660 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
    int n;
    cin >> n;
    int a[n], b[n];
    int sum= 0;
    for(int i = 0; i < n; i++) {
        cin >> a[i];
        sum += a[i];
    }
    sum /= n;
    if (sum % n == 0)
        cout << "IGEN" << endl;
    else {cout << "NEM"; return 0;}

    for (int i = 0; i < n;i++) {
        if ((a[i] - sum) > 0) {
            cout << a[i] - sum << " ";
        }
        else cout << 0 << " ";
    }

    return 0;

}
SubtaskSumTestVerdictTimeMemory
base5/80
1Wrong answer0/03ms1876 KiB
2Wrong answer0/03ms2064 KiB
3Wrong answer0/43ms2556 KiB
4Wrong answer0/53ms2596 KiB
5Wrong answer0/53ms3076 KiB
6Wrong answer0/52ms3004 KiB
7Accepted5/53ms3016 KiB
8Wrong answer0/43ms3104 KiB
9Wrong answer0/43ms3236 KiB
10Wrong answer0/53ms3244 KiB
11Wrong answer0/53ms3380 KiB
12Wrong answer0/53ms3372 KiB
13Wrong answer0/63ms3456 KiB
14Wrong answer0/63ms3452 KiB
15Wrong answer0/73ms3580 KiB
16Wrong answer0/73ms3652 KiB
17Wrong answer0/73ms3660 KiB