partition by parity by inaniwa

z[99999];i;main(n){for(;gets(&n)?--z[atoi()]:z[i+=~z[i]&2]++?printf("%d\n",i):i>1e5?i=~i&puts(""):1;);}

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

download

return to the top page