UVA10036 Divisibility

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=977 [PDF](https://uva.onlinejudge.org/external/100/p10036.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10036/05d8644f62186dbc3408e509b5a0e193daed0609.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10036/007fbaf7997516075368dfbc1e822896cc91a399.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10036/1b4a487b87c651f14f6e465847705bda4ebe033e.png)