Tree MEX Problem (By Moscow Workshop ICPC)
TREE MEX
Can anybody tell me how to solve this problem?
2023 ICPC Asia West Continent Final Contest (live commentary)