UVA12640 Largest Sum Game

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=602&page=show_problem&problem=4388 [PDF](https://uva.onlinejudge.org/external/126/p12640.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12640/d5539cd5784c339fca9b5a0be06354c1d81ed980.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12640/4a535266c1381df48086feaff4d156961a45aa3f.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12640/61b5c0abd6cdd9c3470a119641e4c6a0be65991f.png)