Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. n = int(input())
  2. right = set()
  3. tmp_set = set(input().split())
  4. tmp_str = input()
  5. while tmp_str != "HELP":
  6. if tmp_str == "YES":
  7. right = tmp_set - right
  8. elif tmp_str == "NO":
  9. right = right - tmp_set
  10. else:
  11. tmp_set = set(tmp_str.split())
  12. tmp_str = input()
  13. right = set(map(int, right))
  14. print(*sorted(list(right)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement