UVA12293 Box Game

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=244&page=show_problem&problem=3714 [PDF](https://uva.onlinejudge.org/external/122/p12293.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12293/826a07fa5f575f5181d6057947e2ac3f73e0c030.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12293/3a5ff96fc56ee389d82c119f1864f9dbeeec7425.png)

Output Format

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