UVA11148 Moliu Fractions

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2089 [PDF](https://uva.onlinejudge.org/external/111/p11148.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11148/55b8f644b3eeab2d13e23620132dc583813d407b.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11148/6e9600bf7aca76c86aadb8e716ce060c934008e2.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11148/17808a304eee0c0faf7bfa141ed16d246e4d5bdc.png)