UVA254 Towers of Hanoi

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=4&page=show_problem&problem=190 [PDF](https://uva.onlinejudge.org/external/2/p254.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA254/e136a3f0f51fffa8b6ccb4c0386cd91f57f0d438.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA254/afddbb67219f61b44f805ba7436f5a65a0491f60.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA254/690921b0aaa39e43448a5b917f877fcfe0cd3395.png)