UVA718 Skyscraper Floors

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=9&page=show_problem&problem=659 [PDF](https://uva.onlinejudge.org/external/7/p718.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA718/3219e8d33a372dad72fa697bafd48e969f2ca058.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA718/271e8ce491755f21ede3a89bc90b19c1ce529075.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA718/7e57015fb5729bab7be8a06bfc8861e4190e0268.png)