Code Festival D Compress numbers by mitchs

#!ruby -n
sub!(/^(.)(.* )\1|.\d/){$2||$&.sum%48%10}?redo:puts(/^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