UVA12919 Making some holes

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=862&page=show_problem&problem=4798 [PDF](https://uva.onlinejudge.org/external/129/p12919.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12919/addfc550a17e35b210e341118a1daae3565da3e6.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12919/2a76e53aa4d2e063564032bd78f3a89f17fba563.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12919/2d07061815659be3e062c5d4b6d90095e9477317.png)