UVA10834 The Story of Two Coins

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=20&page=show_problem&problem=1775 [PDF](https://uva.onlinejudge.org/external/108/p10834.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10834/fdf8ccd7612fff5fb6457a24543b670687c6e52d.png)

Input Format

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

Output Format

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