Can any one help me with why this solution is getting TLE, are the constants too high?↵
My solution is [here](https://codeforces.net/contest/342/submission/86944382) in which I made single segment tree for whole of the tree↵
And the one which got AC, in which I made different segtree for each heavy path, is [here](https://codeforces.net/contest/342/submission/86944276)↵
↵
Edit :- Got it now, Thanks to [user:bessiethecow,2020-07-17]
My solution is [here](https://codeforces.net/contest/342/submission/86944382) in which I made single segment tree for whole of the tree↵
And the one which got AC, in which I made different segtree for each heavy path, is [here](https://codeforces.net/contest/342/submission/86944276)↵
↵
Edit :- Got it now, Thanks to [user:bessiethecow,2020-07-17]