Rosetta Problems

Selection of Gems

https://atcoder.jp/contests/awc0109/tasks/awc0109_d