Code Festival D Compress numbers by mitchs (shinh)

char*p,*q;main(s){for(;~scanf("%s%s",p=&s,q=&s+9);puts(*q?"NO":"YES"))for(;*p;q+=(*q=(*q-*p++)%10+48)==48)q-=!*q;}

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

download

return to the top page