Rosetta Problems
← atcoder に戻る
Efficient Signal Control
https://atcoder.jp/contests/ahc036/tasks/ahc036_a