House of Santa Claus by kou

n,j,m;main(w){scanf("%d",&n);for(w=(2*n+1)/3;n;j=!puts(""),n--)for(m=n%w;j<=(n>w?w-m:w);j++)putchar(n/w+j%w?m-j?w-m-j?m*n-m?32:95:92:47:'|');}

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

download

return to the top page