111502024-07-07 17:00:37probaKártya (80 pont)python3Runtime error 0/8018ms3100 KiB
N = int(input())
lap = [int(i) for i in input().split(' ')]

slap = sum(lap)
tort, egesz = slap/N, slap//N

print((tort == egesz )*f'IGEN\n{' '.join([str(int(i-tort)) if i>tort else '0' for i in lap])}'+(tort != egesz)*f'NEM\n{(egesz+1)*N-slap}')


SubtaskSumTestVerdictTimeMemory
base0/80
1Runtime error0/017ms2952 KiB
2Runtime error0/018ms2916 KiB
3Runtime error0/417ms2960 KiB
4Runtime error0/517ms2968 KiB
5Runtime error0/517ms3064 KiB
6Runtime error0/517ms3100 KiB
7Runtime error0/517ms3064 KiB
8Runtime error0/417ms3036 KiB
9Runtime error0/417ms2980 KiB
10Runtime error0/517ms3100 KiB
11Runtime error0/517ms3048 KiB
12Runtime error0/517ms3052 KiB
13Runtime error0/617ms2844 KiB
14Runtime error0/617ms2916 KiB
15Runtime error0/717ms3064 KiB
16Runtime error0/717ms2916 KiB
17Runtime error0/717ms3064 KiB