UVA11351 Last Man Standing

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=25&page=show_problem&problem=2326 [PDF](https://uva.onlinejudge.org/external/113/p11351.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11351/c274f8e208ed1b2fb580b082b63376a3b6b12e04.png)

Input Format

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

Output Format

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