SHARE
TWEET

Untitled

a guest May 23rd, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. arr = map(int, input().split())
  2.  
  3. cur_set = set()
  4. mn = 1e9
  5. mx = -1e9
  6.  
  7. for elem in arr:
  8.     cur_set.add(elem)
  9.     mn = min(mn, elem)
  10.     mx = max(mx, elem)
  11.  
  12. full_set = {i for i in range(mn, mx + 1)}
  13. print(*full_set.symmetric_difference(cur_set))
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
 
Top