partition by parity by idealmachine

for(a=[];n=readline(p=print);a.sort(function(a,b)a-b))a.push(n);for(i in a)a[i]&1||p(a[i]);p();for(i in a)a[i]&1&&p(a[i])

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

download

return to the top page