codice: s = map(int, raw_input().split(",")) print set(xrange(s[-1]+1)) - set(s)
s = map(int, raw_input().split(",")) print set(xrange(s[-1]+1)) - set(s)
Amaro C++, il gusto pieno dell'undefined behavior.
Regole del Forum