UVA12883 Playing with Geometry

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=861&page=show_problem&problem=4748 [PDF](https://uva.onlinejudge.org/external/128/p12883.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12883/0791450c59b1ac1393988bd24887e4fae53aec39.png)

Input Format

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

Output Format

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