partition by parity by wilkes

import sys
b=['']*2
for a in sorted(map(int,sys.stdin)):b[a%2]+='%d\n'%a
print'\n'.join(b),

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page