Rosetta Problems

Red and Blue Spanning Tree

https://atcoder.jp/contests/agc064/tasks/agc064_b