UVA12581 Divisibility

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=441&page=show_problem&problem=4026 [PDF](https://uva.onlinejudge.org/external/125/p12581.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12581/b02c8f60e3619bac1360114ca56192299914e561.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12581/8dbe9bce7b0b1659a9b839d876c659de375eef26.png)

Output Format

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