Koch Island by 51b

import std.stdio;void main(){int i,j,k,n,c,d;scanf("%d",&n);for(n=1<<2*n;i<2*n;i++)for(j=2*n;~j--;putchar=~j?"\\/ "[c]:10)for(c=(i^j)/n,k=n;k/=4;c=c>1|(d?i:j)/k%4%3<1^c^d?2:!d)d=i/k+j/k&1;}

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

download

return to the top page