UVA13213 Quidditch Match

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=878&page=show_problem&problem=5136 [PDF](https://uva.onlinejudge.org/external/132/p13213.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13213/bd37f973989a3481b6bfbc84985226214c4c64d7.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13213/45f0afa4b0d56a7b180dfd2ecfe4567295a3bb1b.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13213/6753c62c8a8edfce82ebdc481a804a4f2bd47b26.png)