Rosetta Problems

Best Matched Pair

https://atcoder.jp/contests/jag2016autumn/tasks/icpc2016autumn_a