UVA10333 The Tower of ASCII

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=15&page=show_problem&problem=1274 [PDF](https://uva.onlinejudge.org/external/103/p10333.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10333/7e186b40ba038d922dd2a0c11bf9bdb35b278124.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10333/0ee718fddd75b21798a3a1bf29ac84cc4de618c1.png)