UVA10173 Smallest Bounding Rectangle

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1114 [PDF](https://uva.onlinejudge.org/external/101/p10173.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10173/5f262209530924a2c049f70498a4181078ba14df.png)

Input Format

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

Output Format

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