UVA323 Jury Compromise

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=5&page=show_problem&problem=259 [PDF](https://uva.onlinejudge.org/external/3/p323.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA323/c7b6c683e8d99d641e6ceda5403d2046b1543157.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA323/549f8f7966cff47368b778a0f8cc36bf7e06dada.png)

Output Format

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