UVA11880 Ball in a Rectangle

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=226&page=show_problem&problem=3002 [PDF](https://uva.onlinejudge.org/external/118/p11880.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11880/ccb2ae682d28b73dfbcd17d8619f6c6172c33f77.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11880/8e38d9c3a887edebf5d94ad11d447ec3658fff44.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11880/710eb1ca997c1b39f127cbaa30160d342fdc8eae.png)