UVA574 Sum It Up

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=7&page=show_problem&problem=515 [PDF](https://uva.onlinejudge.org/external/5/p574.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA574/80cc3356ed238e341352821ca44aca5dfab49144.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA574/3aea68aa04d39d9aad3af3b1447b8f7e399dc25a.png)

Output Format

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