Oh! Seems you misunderstand me! See how the last block in your code should look:
for tc in range(10): _ = stdin.readline() sequence = [int(ch) for ch in stdin.readline().split()] supers = supernumbers(sequence) print len(supers) for i in supers: print i, When I submitted it (for the 1st time) without > for tc in range(10): the e-judge counted the output of your code as Wrong Answer; just because the e-judge got an answer for only the very 1st testcase (I think in it was not too large input data). -- http://mail.python.org/mailman/listinfo/python-list