postfix to infix by kinaba

char*b,S[99],*s=S;x(p){if(p<4){int q=*--s,c=19&86%q,d=c&18;p>d?*--b=41:1;x(c);*--b=q;x(d);p>d?*--b=40:1;}}main(){for(;gets(s);x(0),puts(b))for(;*++s;)b=S+98;}

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

download

return to the top page