Tree MEX Problem (By Moscow Workshop ICPC)
TREE MEX
Can anybody tell me how to solve this problem?
ABC 483
ICPC NA North Central and South Division