Tower of Hanoi by 51b

l;main(k){for(k=l=1<<getchar()%8;--l+k;)putchar(l?(abs(l>0?k-l&k+~l:~-l&l)<<k%3)%3+65:10);}

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

download

return to the top page