UVA318 Domino Effect

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=5&page=show_problem&problem=254 [PDF](https://uva.onlinejudge.org/external/3/p318.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA318/2702423b21f8117735d4166f8f3b0cd98bb93416.png)

Input Format

N/A

Output Format

N/A