UVA11477 Game of Rectangles

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=26&page=show_problem&problem=2472 [PDF](https://uva.onlinejudge.org/external/114/p11477.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11477/2c8db25dd4dabe4ab6baf3d3db9deef05140b624.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11477/6cd8addbec34c369a22a6bef40b30d4dd10cbbb2.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11477/83594cc72f007e084d7ac026ed3de7302c31410f.png)