char*p,*q,s[200];main(c,t){for(;gets(p=s);printf(c+*q?"failed at: %s\n":"yes\n",c?p-1:"EOL"))for(q=t;c=-~*p++/3,~c%7%3?*q--==c-1:(*++q=c););}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page