UVA11648 Divide The Land

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=78&page=show_problem&problem=2695 [PDF](https://uva.onlinejudge.org/external/116/p11648.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11648/1d9993ba034edb212e54fabae141273df258f320.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11648/de4ffee20e9cc9d009cffbd12ce1f0a7df9b4641.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11648/79b6ec6fb644e971e18263d23ee7a568237e9866.png)