UVA12652 Lines of Containers

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=602&page=show_problem&problem=4381 [PDF](https://uva.onlinejudge.org/external/126/p12652.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12652/1b5c88413aa8c78e54bbbe6671a98fa8cdd00c69.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12652/13d0afe888506ab7d5ad19ad08105bead7d5ff3c.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12652/90067cabf20620cf435160bfe849ec02e408c15d.png)