UVA493 Rational Spiral

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=6&page=show_problem&problem=434 [PDF](https://uva.onlinejudge.org/external/4/p493.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA493/36294e7c42c41e89126baedcf4a3db5098ed78ec.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA493/42a3468d4ebf1b64b86e29be5be88159c8535009.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA493/284954f97294848907c0a001a7d66a192375848c.png)