TLE — DSU on Trees

Правка en1, от babu1998, 2020-08-26 20:22:54

https://www.codechef.com/problems/CHEFCOMP

https://www.codechef.com/viewsolution/37171940

I cant understand why am i getting TLE even after applying all optimisations of DSU. Please help. I have tried this for question for 3 days.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский babu1998 2020-08-26 20:22:54 255 Initial revision (published)