Rosetta Problems

Strings of Impurity

https://atcoder.jp/contests/abc138/tasks/abc138_e