UVA12163 Addition-Subtraction Game

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=243&page=show_problem&problem=3315 [PDF](https://uva.onlinejudge.org/external/121/p12163.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12163/58cfac97d5b0f659dafbdea679ac231ab410bbe8.png)

Input Format

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

Output Format

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