Distance from x 2 by llhuii(mitchs)

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

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

download

return to the top page