Ruby by chocobi

x,y;main(c){for(;~scanf("%d",&c);x=y=0)for(c<2&&puts("\xe2\x97\x87",--c);y<c;++x)printf(x-y?x<c*2-y-1?y?" ":"-":(x=-1,y++?"/\n":"\\\n"):y?"\\":"/");}

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

download

return to the top page