Bracket Matching by moriA

#import<ios>\x0d
char*s,a[999],*b;main(){for(;b=s=gets(a);printf(*s+a-b+1?"failed at: %s\n":"yes\n",*s?s:"EOL"))for(;*s%4%3?*s%*--b<3:(*b++=*s);s++);}

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

download

return to the top page