fork(1) download
  1. d={}
  2. n=int(input())
  3. stri=input()
  4. arr=stri.split()
  5. for a in arr:
  6. d[int(a)]=1
  7. print(len(d))
Success #stdin #stdout 0.05s 9848KB
stdin
5
1 0 1 2 0
stdout
3