You are viewing a single comment's thread. Return to all comments →
n = int(input()) A = list(map(int, input().split())) print ( n - max( [ A.count(t) for t in set(A) ]) )
Seems like cookies are disabled on this browser, please enable them to open this website
Equalize the Array
You are viewing a single comment's thread. Return to all comments →