172012025-06-03 12:36:37algoproKártya (80 pont)pypy3Wrong answer 43/8059ms21480 KiB
# UUID: c1bfeba9-5091-4ef3-b683-91394da6a367
N=int(input())
A=[int(x) for x in input().split()]
s=sum(A)
if s%N==0:
    print("IGEN")
    x=s//N
    B=[]
    for a in A:
        if a>x:
            B.append(a-x)
        else:
            B.append(0) 
    print(*B)
else:
    print("NEM")
SubtaskSumTestVerdictTimeMemory
base43/80
1Accepted0/043ms19580 KiB
2Wrong answer0/045ms19492 KiB
3Accepted4/439ms19372 KiB
4Wrong answer0/539ms19376 KiB
5Accepted5/539ms19400 KiB
6Wrong answer0/539ms19408 KiB
7Accepted5/545ms19300 KiB
8Wrong answer0/443ms19476 KiB
9Accepted4/446ms19624 KiB
10Wrong answer0/546ms19576 KiB
11Accepted5/541ms19920 KiB
12Wrong answer0/539ms19672 KiB
13Accepted6/650ms21392 KiB
14Wrong answer0/645ms19644 KiB
15Accepted7/759ms21396 KiB
16Wrong answer0/739ms19496 KiB
17Accepted7/750ms21480 KiB