UVA12634 Pairing Boys and Girls

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=602&page=show_problem&problem=4359 [PDF](https://uva.onlinejudge.org/external/126/p12634.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12634/abd6344e579762643417f16269d22e050172ec34.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12634/49c8a59d403c28c3fb0293d416b91b4fa62a5232.png)

Output Format

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