Code Festival D Compress numbers by mitchs

#!ruby -pl
1while$_.sub!(/^(.)(.* )\1|.\d/){$2||$&.sum%48%10}
$_=/^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