UVA12949 Voting Duels

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=862&page=show_problem&problem=4828 [PDF](https://uva.onlinejudge.org/external/129/p12949.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12949/3717d8d5300b40969f8dd537b9c9680031363076.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12949/0048cee7927154b3e44756ef891bc9ca60096366.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12949/0f23b21a5d0af5639c0d29da245fd7a83325e531.png)