111512024-07-07 17:01:22probaKártya (80 pont)python3Accepted 80/8018ms3192 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
base80/80
1Accepted0/018ms2956 KiB
2Accepted0/017ms3064 KiB
3Accepted4/417ms2988 KiB
4Accepted5/517ms2960 KiB
5Accepted5/517ms2916 KiB
6Accepted5/517ms2816 KiB
7Accepted5/517ms2916 KiB
8Accepted4/417ms3064 KiB
9Accepted4/417ms3044 KiB
10Accepted5/517ms3088 KiB
11Accepted5/517ms2980 KiB
12Accepted5/517ms3192 KiB
13Accepted6/617ms3044 KiB
14Accepted6/618ms2992 KiB
15Accepted7/718ms3088 KiB
16Accepted7/718ms3088 KiB
17Accepted7/717ms3044 KiB