Rosetta Problems

Laboratories That Can Collaborate

https://atcoder.jp/contests/awc0007/tasks/awc0007_b