UVA12033 Game of CS

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=242&page=show_problem&problem=3184 [PDF](https://uva.onlinejudge.org/external/120/p12033.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12033/6a6f925f1cfbc72ff8833063472617d8e5259772.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12033/839f1fe439f9992ff4f087c81c1fb78b46fa0a3b.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12033/181fa5352eb254abc967c0cb082f474c2f5177a8.png)