Rosetta Problems
← atcoder に戻る
Preserve Distinct
https://atcoder.jp/contests/agc062/tasks/agc062_f