UVA11910 Closest Fractions

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=229&page=show_problem&problem=3061 [PDF](https://uva.onlinejudge.org/external/119/p11910.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11910/7f228d0b710c77b7746397f04606d691c7d8c125.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11910/86cadab4506495968b6125ac52e83cee8536f366.png)

Output Format

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