UVA883 Overlapping Rectangles

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=10&page=show_problem&problem=824 [PDF](https://uva.onlinejudge.org/external/8/p883.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA883/fc2b72d250f746a32e3193eaaa70031f36e2f023.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA883/8941c38832063e231786c8ccfa529cd52bb7e214.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA883/8da1279c8fe5e0a7ee73c6d03285e366751f84e1.png)