hexagon 2nd fixed by 51b

l,k,i;main(n,m){for(scanf("%d",&n),m=4*n-1;m--;i++)for(k=0,l=3*n+(n>i?3*i:m<n?3*m+1:3*n-2);~l;k++)putchar(l--?"\\__/  "[l>6*i+1|l>6*m+3?4:(k+m*3)%6]:10);}

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

download

return to the top page