159972025-03-26 13:20:08diakKártya (80 pont)pypy3Wrong answer 0/8059ms21512 KiB
n=int(input())
k=[int(x) for x in input().split()]
s=sum(k)
if s%n!=0:
    print("Nem")
    print(n-s%n)
else:
    print("Igen")
    target=s//n
    for x in k:
        if x> target:
            print(x-target,end=" ")
        else:
            print(0, end=" ")
SubtaskSumTestVerdictTimeMemory
base0/80
1Wrong answer0/045ms19400 KiB
2Wrong answer0/039ms19536 KiB
3Wrong answer0/441ms19396 KiB
4Wrong answer0/546ms19392 KiB
5Wrong answer0/539ms19564 KiB
6Wrong answer0/539ms19400 KiB
7Wrong answer0/546ms19504 KiB
8Wrong answer0/443ms19488 KiB
9Wrong answer0/441ms19584 KiB
10Wrong answer0/548ms19668 KiB
11Wrong answer0/546ms19944 KiB
12Wrong answer0/541ms19644 KiB
13Wrong answer0/659ms21480 KiB
14Wrong answer0/645ms19692 KiB
15Wrong answer0/754ms21512 KiB
16Wrong answer0/739ms19428 KiB
17Wrong answer0/752ms21476 KiB