a guest May 22nd, 2019 56 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. for i in range(len(a)):
  7.     if a.count(i)==1:
  8.         sum=sum+i
  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