Mirror RCPC 2023 Day 1 | A. Yet Another Colored Tree Problem

This was the problem page during the contest. Access the current page here.