[Help] Gym Problem 100570F (Centroid Decomposition)

Правка en1, от rachitiitr, 2016-09-19 17:04:48

Hey everyone!
I have just understood the idea of Centroid Decomposition in previous zscoder's contest.
I was doing another problem based on this concept.
Here is my detailed source code
Can someone help me figure out what am I doing wrong. I have checked the integer overflow cases and the code almost seems right. I can't view the test cases either of the gym problem.
Thanks.

Теги centroid decomposition, dp on tree

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский rachitiitr 2016-09-19 18:20:13 7 Tiny change: 'est cases either of the gy' -> 'est cases of the gy'
en1 Английский rachitiitr 2016-09-19 17:04:48 519 Initial revision (published)