Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- arr = map(int, input().split())
- cur_set = set()
- mn = 1e9
- mx = -1e9
- for elem in arr:
- cur_set.add(elem)
- mn = min(mn, elem)
- mx = max(mx, elem)
- full_set = {i for i in range(mn, mx + 1)}
- print(*full_set.symmetric_difference(cur_set))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement