Simulare - IIOT 2021-22 Round III | Connect the Tree

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