stable partition by tako

char s[99],*p;i;main(){gets(p=s);for(;i<3;!*++p?i++,p=s:0)(i?i>1?*p>*s:*p==*s:*p<*s)&&putchar(*p);}

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

download

return to the top page