Rosetta Problems

Efficient Signal Control

https://atcoder.jp/contests/ahc036/tasks/ahc036_a