a guest May 22nd, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n = int(input())
  2. a = []
  3. sum = 0
  4. for i in range(n):
  5.     a.append(int(input()))
  6. b= set(a)
  7. for i in range(len(b)):
  8.     sum=sum+1
  9. print(sum)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand