Rosetta Problems
← atcoder に戻る
2nd Greatest Distance
https://atcoder.jp/contests/arc121/tasks/arc121_a