Numbering by koi

m;f(s,j,i){for(j*=4;++j%4;s+1<m&&f(s+1,j)){for(i=0;i<=s;)printf(".%*d"+!i++,!i*s*3+1,j>>(s-i)*2&3);puts("");}}main(){scanf("%d",&m);f(0,0);}

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

download

return to the top page