UVA460 Overlapping Rectangles

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=6&page=show_problem&problem=401 [PDF](https://uva.onlinejudge.org/external/4/p460.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA460/9427fdfd2a2075b08ade19807f70b127625f98fe.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA460/2aeabe6f1340dbb77e8b9fa0d9576db2d0eea73f.png)

Output Format

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