Rosetta Problems

Preserve Distinct

https://atcoder.jp/contests/agc062/tasks/agc062_f