UVA11037 Point of View in Flatland

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=22&page=show_problem&problem=1978 [PDF](https://uva.onlinejudge.org/external/110/p11037.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11037/4be8fa5b06e52f963ccc4d6e6a1922383bb48e3f.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11037/96be4cf8b99377f1433937bddd79365761dfd36a.png)