UVA12901 Refraction

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=862&page=show_problem&problem=4766 [PDF](https://uva.onlinejudge.org/external/129/p12901.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12901/03721ed0bb5d94aef1ee39b166cc25b60ddb697a.png)

Input Format

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

Output Format

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