List of integers & L.I.S. (SPOILER)
n00m
n00m at narod.ru
Fri Sep 9 07:17:23 EDT 2005
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).
More information about the Python-list
mailing list