hexagon 2nd fixed by nn

n=System.in.read()%8*3
3.step(f=4*n,3){i->m=[1,2*i-f-1].max()+n
println((i..[n,i-1,f-i].min()+n+i-3).sum{'/  \\__'[it<m?1:it%6]})}

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

download

return to the top page