b;void main(a,s){for(;gets(s);puts(a?"YES":"NO"))for(a=strtok(s," ");b=a?strtok(0," "):0;)a=strstr(b,a)?b:0;}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page