36642023-03-02 10:25:16cstmKártya (80 pont)python3Accepted 80/8018ms13208 KiB
a=0
N=int(input())
list=input().split()
for i in range(0,N):
    list[i]=int(list[i])
for i in range(0, len(list)):
    a=a+list[i]
if (a%N==0):
    print("IGEN")
    b=a/N
    for i in range(0,N):
        list[i]=list[i]-b
        if (list[i]>-1):
            print(int(list[i]), end=' ')
        else:
            print(0, end=' ')
else:
    print("NEM")
    print(N-a%N)
SubtaskSumTestVerdictTimeMemory
base80/80
1Accepted0/017ms11052 KiB
2Accepted0/017ms11340 KiB
3Accepted4/417ms11368 KiB
4Accepted5/517ms11344 KiB
5Accepted5/517ms11820 KiB
6Accepted5/517ms12052 KiB
7Accepted5/517ms12248 KiB
8Accepted4/417ms12664 KiB
9Accepted4/417ms12328 KiB
10Accepted5/517ms12452 KiB
11Accepted5/517ms12776 KiB
12Accepted5/517ms12592 KiB
13Accepted6/618ms12824 KiB
14Accepted6/617ms13064 KiB
15Accepted7/718ms13000 KiB
16Accepted7/717ms12884 KiB
17Accepted7/718ms13208 KiB