import os;R=range(100);a=os.read(0,100) for i in R:os.write(1,`min(abs(j%11-i%10)+abs(j/11-i/10)for j in R if'.'<a[j])`+i%10/9*'\n')
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page