Code Festival D Compress numbers by tstc11

r(a,b,c)char*a,*b;{for(;*a&&*b;)if((c+=*a++-8)%10==*b-48&&r(a,b+1,0))return;return!*a&&!*b;}main(_,s){int t[9];for(;~scanf("%s %s",s,t);puts(r(s,t,0)?"YES":"NO"));}

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

download

return to the top page