UVA434 Matty's Blocks

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=6&page=show_problem&problem=375 [PDF](https://uva.onlinejudge.org/external/4/p434.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA434/b03db6539506115fc05c61f49a66d9e74fa33321.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA434/33ed2fbd0b4ad6f0558719177ddd473473333485.png)

Output Format

N/A