Code Festival D Compress numbers by shinh

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

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

download

return to the top page