UVA12408 Multi Round Matches

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=279&page=show_problem&problem=3839 [PDF](https://uva.onlinejudge.org/external/124/p12408.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12408/2fee8e10ff5aaf1d97764625d6f097a5704a3962.png)

Input Format

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

Output Format

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