Distance from x by chocobi

i,j,k,x[9],y[9];main(c,v,e){for(;~(c=getchar());++i>10&&(i=0,++j))c==120&&(x[k]=i,y[k++]=j);for(j=0;j<10;++j,puts(""))for(i=0;i<10;++i,putchar(48+e))for(c=0,e=9;c<k;e=v<e?v:e)v=abs(x[c]-i)+abs(y[c++]-j);}

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

download

return to the top page