partition by parity by davisagli

import sys
for x,y in sorted([(0,'')]+[(y%2,y)for y in map(int,sys.stdin)]):print y

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

download

return to the top page