N Queens by not

a[],b=-8;f(l,d,r,p)char*p;{for(d?*p=p[-1]=32:puts(a);b=8<<++*p;b&l&d&r&&f(l-b<<1,d-b,r-b>>1,p+2));}main(){f(b,b<<getchar()^b<<16,b,a);}

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

download

return to the top page