UVA916 Dividing Land

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=857 [PDF](https://uva.onlinejudge.org/external/9/p916.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA916/b8897512e0f4f71d51e8017e8337bfd1d61830cb.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA916/1873ee4f309ee7822c180a27ecafa4d7f431653b.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA916/044332fd4ad963d8b4dd7cb5f2a442a3e81f4f61.png)