UVA742 Domino Game

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=9&page=show_problem&problem=683 [PDF](https://uva.onlinejudge.org/external/7/p742.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA742/7d98bf30ce012c2d3675fa4645e5c0b5dc5cfab7.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA742/6511bffc345032cef915480b288c19b3f8480cb9.png)

Output Format

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