Toggle navigation
Discord
YouTube
Facebook
Instagram
english
english
українська
Algotester 4.7
Build 712
2025-09-07
Log In
Contact Us
College
Sponsors
Donate
Sources
Python 3.8
n = int(input()) d = dict() for x in input().split(' '): if x not in d: d[x] = 0 d[x] += 1 print(n - max([d[x] for x in d]))