Rosetta Problems

Formation of the Strongest Pair

https://atcoder.jp/contests/awc0029/tasks/awc0029_c