UVA10891 Game of Sum

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=20&page=show_problem&problem=1832 [PDF](https://uva.onlinejudge.org/external/108/p10891.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10891/c6dee7bf4345b5a58b0b8644fb06c07608c40ef3.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10891/83cb3fa2fcfea3c8bec0c4ba3875f296b670fb9c.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10891/21063ea1ae5b572ff629bddc7e3854ff11afd4d9.png)