Rosetta Problems

Distance Ranking

https://atcoder.jp/contests/arc172/tasks/arc172_d