Rosetta Problems
← atcoder に戻る
K-th beautiful Necklace
https://atcoder.jp/contests/abc252/tasks/abc252_h