import statistics B=int(input()) C=input().split() A=[int(i) for i in C] M=statistics.multimode(A) R=len(M) if B==R: print(0) else: print(R)
1 2 3 4 5 6 7 8 9 10 | import statistics B=int(input()) C=input().split() A=[int(i) for i in C] M=statistics.multimode(A) R=len(M) if B==R: print(0) else: print(R) |