UVA654 Ratio

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=8&page=show_problem&problem=595 [PDF](https://uva.onlinejudge.org/external/6/p654.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA654/7b9c80c63e577fab4493ee1fd951e110538a0b25.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA654/74c8933a49e158bd48dd3110e8178d8b65704336.png)