Rosetta Problems

Lights Out on Connected Graph

https://atcoder.jp/contests/arc105/tasks/arc105_f