UVA11057 Exact Sum

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=22&page=show_problem&problem=1998 [PDF](https://uva.onlinejudge.org/external/110/p11057.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11057/a0225ccd2fcdde775c831c781cee2f2b9e8b0315.png)

Input Format

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

Output Format

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