Code Festival D Compress numbers by kimiyuki

for(<>){($a,$_)=split;@b=split//;$a=~s/./($b[0]-=$&)%10||shift@b/eg;print(@b?NO:YES,$/)}

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

download

return to the top page