Rosetta Problems

String Coloring

https://atcoder.jp/contests/agc026/tasks/agc026_c