Rosetta Problems

周期文字列 (Cycle String)

https://atcoder.jp/contests/joi2025yo1c/tasks/joi2025_yo1c_d