Rosetta Problems

EJOI 2022 - Adjacent Pairs

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