Rosetta Problems

Match Matching

https://atcoder.jp/contests/abc118/tasks/abc118_d