Rosetta Problems

Edge Elimination

https://atcoder.jp/contests/abc290/tasks/abc290_g