hexagon 2nd fixed by mht

c,C,L,l,x;main(n){n=atoi(gets());char* s="/  \\__";for(;c<(C=6*n-2)*(L=4*n-1);(x=++c%C)?:puts("")&&l++)(3*n>x-3*l&&x+3*l<C+3*L-3*n)?putchar((3*n-2<=x+3*l&&C-3*L-3*n<=x-3*l)?s[(x+3*(l+n%2))%6]:32):0;}

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

download

return to the top page