Toggle navigation
YouTube
Facebook
Telegram
english
english
українська
Algotester 4.3
Build 501
2024-12-30
Log In
Contact Us
College
Sponsors
Donate
Sources
Python 3
n = int(input()) a = list(map(int, input().split())) s = set() for i in range(n): el = a[i] if el != 0: s.add(el) print(len(s))