UVA13083 Yet another GCDSUM

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=866&page=show_problem&problem=4981 [PDF](https://uva.onlinejudge.org/external/130/p13083.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13083/21b45aa00ebf5af1004095b8c005b097e2bcdf78.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13083/0e639cd5feb013f93c49f39b5f1ec58d14a0c5a6.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13083/716ade1c01b2da81ba10c7131fccb02e1dc2bb3c.png)