Distance from x 2 by mitchs

import re
s=re.sub
a=s('o','-',open(0).read())
for d in range(20):d//=2;a=s('x|\.(?=(|[^@]{10})%d)'%~-d,str(d),a[::-1])
print(a)

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

download

return to the top page