Tower of Hanoi by murky-satyr

print((function h(n,f,t,v)n--?h(n,v,t,f,h(n,f,v,t),F+=f,T+=t):F)(readline(F=T=''),'A','C','B')+'\n'+T)

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

download

return to the top page