Rosetta Problems
← atcoder に戻る
Lexicographic Ranking of Circular Strings
https://atcoder.jp/contests/awc0090/tasks/awc0090_e