Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. l1 = int(input())
  2. l2 = int(input())
  3. l3 = int(input())
  4.  
  5. lista = []
  6.  
  7.  
  8. vote = 0
  9. total = l1 + l2 + l3
  10.  
  11. for i in range(0, total):
  12. vote = int(input())
  13. lista.append(vote)
  14.  
  15. lista.sort()
  16. final_list = []
  17. flag = False
  18. c = 0
  19.  
  20. for i in range(0, total - 1):
  21. if lista[i] == lista[i+1]:
  22. final_list.append(lista[i])
  23. c += 1
  24.  
  25. real_voters = []
  26.  
  27. final_list.sort()
  28.  
  29. for i in final_list: #
  30. if i not in real_voters:
  31. real_voters.append(i)
  32.  
  33. print(real_voters.count())
  34. for j in real_voters:
  35. print(j)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement