Rosetta Problems

Free Contest 112 - RAINBOWREC

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