Code Festival D Compress numbers by stqn

char*s,*t;q[],n;main(){for(;~scanf("%s%s",s=q,t=q+5);n=!puts(*t|n?"NO":"YES"))for(;*s;*t%16-n%10||(n=*t&&!t++))n+=*s++%16;}

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

download

return to the top page