UVA10478 The Falling Pillars

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=16&page=show_problem&problem=1419 [PDF](https://uva.onlinejudge.org/external/104/p10478.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10478/091b458fb654f3e55270b8153270aaec686130c9.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10478/8aa40adf4ce1096f1dea3083117d70e718ff5951.png)

Output Format

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