Rosetta Problems

Bomb Disposal Squad

https://atcoder.jp/contests/awc0080/tasks/awc0080_a