partition by parity by nn

print"$System.in".split()*.toLong().sort().sum{it%2?"\n$it":println(it)?:''}

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

download

return to the top page