Bracket Matching by 51b

main(_,s){char*p,*q;for(;q=p=gets(s);printf(*q?"failed at: %s\n":"yes\n",*p?p:"EOL"))for(;*p%9%5%3?*q++=*p:(*p^*--q)<7&&*q;)p++;}

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

download

return to the top page