Hey
i was trying to solve Fixed-Length Paths I with centroid decomposition but I get RTE in all test , I found the exact same problem in codeforces Distance in Tree and tried the same code here and got Accepted
My code : My_Code
Any help would be appreciated .