Distance from x 2 by hallvabo

_=bytearray(open('../fd/0').read().translate('0?\n???.-'*32)+' '*11)
for(i)in range(109)*9:
 if+i<1:s=_*1
 if+s[i]==46:_[i]=min([1+s[i-j]for(j)in-11,-1,1,11if+46<s[i-j]]or[s[i]])
print _

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

download

return to the top page