UVA10616 Divisible Group Sums

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=18&page=show_problem&problem=1557 [PDF](https://uva.onlinejudge.org/external/106/p10616.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10616/9a5f63eea564a985628427428a6613c3b7fbae17.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10616/0422a8c420dc64ed29a851cf11adb888ff020568.png)