Driveways by rotary-o

var s=""++io.Source.stdin
for(i<-0 to 199;if s(i)==35;m=s.size;n=m/10;j=1-m to 0 minBy(j=>if(s(-j)>35&(-j/n==i/n| -j%n==i%n)){val l=i+j abs;l/n+l%n}else n);b=1>>(i+j)/n;k<- -j until i by(i+j).signum*(b+n-b*n))s=s updated(k,if(-j==k&i!=7)'+'else"|-"(b))updated(m-90,'+')
print(s)

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

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page