partition by parity by hide24

puts$<.map(&:to_i).sort.partition(&:even?).zip [$/]*2

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

download

return top