Rosetta Problems

Best Representation

https://atcoder.jp/contests/arc060/tasks/arc060_d