partition by parity by js

for(s=[[],[""]];n=readline();)s[n%2].push(n);for(i in s)print(s[i].sort(function(a,b){return a-b}).join("\n"))

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

download

return to the top page