UVA870 Intersecting Rectangles

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA870/7efd542cf9d915a48b566216c411d67166e49ccf.png)

Output Format

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