Rosetta Problems
← atcoder に戻る
Selection of Gems
https://atcoder.jp/contests/awc0109/tasks/awc0109_d