Rosetta Problems

Bichrome Tree Connectivity

https://onlinejudge.u-aizu.ac.jp/problems/3120