Rosetta Problems

同色环

https://www.acwing.com/problem/content/5148