partition by parity by konn

import List
main=interact$unlines.f.partition odd.sort.map read.lines
f(a,b)=g b++"":g a
g=map show

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

download

return to the top page