UVA12307 Smallest Enclosing Rectangle

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=278&page=show_problem&problem=3729 [PDF](https://uva.onlinejudge.org/external/123/p12307.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12307/fbb63be11b6d3796568ea8b9311713edb39a19af.png)

Input Format

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

Output Format

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