I have written a blog post about the problem describing how to solve it.
http://theanirudhrb.wordpress.com/2014/06/16/problem-discussion-spoj-tower-of-babylon-babtwr/ (Shortlink: http://wp.me/p2x8Gw-x)
I have written a blog post about the problem describing how to solve it.
http://theanirudhrb.wordpress.com/2014/06/16/problem-discussion-spoj-tower-of-babylon-babtwr/ (Shortlink: http://wp.me/p2x8Gw-x)
why no longer available?