UVA11808 Ensuring Victory

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=226&page=show_problem&problem=2908 [PDF](https://uva.onlinejudge.org/external/118/p11808.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11808/b5308e006d0b44e94f777e514ea7906467e55556.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11808/33fec9a029b6ab35a484d1705e7dae746cf15605.png)