partition by parity by chocobi

j,i[99999];main(c){for(;~scanf("%d",&c);)++i[c];for(;j<99998;i[j]--?printf("%d\n",j):++j-99997?++j:puts("",j=1));}

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

download

return to the top page