fork(1) download
  1. n = int(input())
  2. t = map(int,input().split())
  3. lst = sorted(t)
  4. print(sorted(set(range(lst[0], lst[-1])) - set(lst)))
  5.  
Success #stdin #stdout 0.02s 9332KB
stdin
4
10 13 12 8
stdout
[9, 11]