128982025-01-03 09:06:52PappMatyasKártya (80 pont)cpp17Wrong answer 43/801ms320 KiB
#include <iostream>

using namespace std;

int main()
{
    int n, A[100000];
    long long a = 0;
    cin >> n;
    for(int i = 0; i < n; i++)
    {
        cin >> A[i];
        a+=A[i];
    }
    if(a%n != 0)
    {
        cout << "NEM" << endl;
    }
    else
    {
        cout << "IGEN" << endl;
        int l = a/n;
        for(int i = 0; i < n; i++)
        {
            if(A[i] > l)
            {
                cout << A[i] - l << " ";
            }
            else
            {
                cout << 0 << " ";
            }
        }
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base43/80
1Accepted0/01ms320 KiB
2Wrong answer0/01ms320 KiB
3Accepted4/41ms320 KiB
4Wrong answer0/51ms320 KiB
5Accepted5/51ms320 KiB
6Wrong answer0/51ms320 KiB
7Accepted5/51ms320 KiB
8Wrong answer0/41ms320 KiB
9Accepted4/41ms320 KiB
10Wrong answer0/51ms320 KiB
11Accepted5/51ms320 KiB
12Wrong answer0/51ms320 KiB
13Accepted6/61ms320 KiB
14Wrong answer0/61ms320 KiB
15Accepted7/71ms320 KiB
16Wrong answer0/71ms320 KiB
17Accepted7/71ms320 KiB