UVA922 Rectangle by the Ocean

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=863 [PDF](https://uva.onlinejudge.org/external/9/p922.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA922/e5b0d78b775f8382e79e8e0b17b12753703886ae.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA922/13f2e7230d57b956e97687e73f117d1245be3842.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA922/63a881231dadda7d3f60437eafa6c7209c5f98e9.png)