Rosetta Problems

Chuỗi hạt (Hard version)

https://oj.vnoi.info/problem/nknl2