UVA430 Swamp County Supervisors

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA430/1c247399cc3dfb72e08ce12ce0e5cd7dd26264a4.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA430/0c073de0bd0a6c5ab284f67a00d3ca01aae4aeb9.png)