UVA11442 Linear Diophantine Tidbits

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=26&page=show_problem&problem=2437 [PDF](https://uva.onlinejudge.org/external/114/p11442.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11442/88f140b238bf147768cecde6f75703ff4ef24fc8.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11442/97890793c865976776871983939fa32a8a0a0ad0.png)