Rosetta Problems

A Single Strike of Dominoes

https://atcoder.jp/contests/awc0101/tasks/awc0101_b