UVA10521 Continuously Growing Fractions

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=17&page=show_problem&problem=1462 [PDF](https://uva.onlinejudge.org/external/105/p10521.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10521/81fe7c17376d0a3ad4bd09afe3de84a1e4fb3f6f.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10521/9eb4df218647c6304c18740f0f2e031267d4431a.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10521/10c572115f474d042ef3c9176dbe3f7a2224e87b.png)