Rosetta Problems

Run Enumerate

https://judge.yosupo.jp/problem/runenumerate