UVA12355 Consecutive Sums

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=278&page=show_problem&problem=3777 [PDF](https://uva.onlinejudge.org/external/123/p12355.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12355/95eb3dbcdfb1aed3cd92b17f4fe705f593122bb0.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12355/6fd0ec467514ded00e8b9e9bce5926bde6463494.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12355/22bf55824f91ccbd3902988d8a4cf4649ff2f440.png)