UVA11718 Fantasy of a Summation

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=117&page=show_problem&problem=2765 [PDF](https://uva.onlinejudge.org/external/117/p11718.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11718/908a7cbcb3935237f18c6ff3a0d964fe7920b82e.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11718/62170bf1710e216882b6824fa85f40d107e044f1.png)

Output Format

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