UVA11518 Dominos 2

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=27&page=show_problem&problem=2513 [PDF](https://uva.onlinejudge.org/external/115/p11518.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11518/7f28ab761227ecc0796512e3a227ad6b7d28229e.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11518/358c7d33d629af402b53bf37fed925488939a6c1.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11518/66db10874dbf273f4e15346e2df8aeb00eddd6c8.png)