Question on heavy light decomposition

Правка en1, от dhwanilpatel, 2015-10-10 20:15:48

Hi everybody, I am solving this problem on SPOJ and have applied heavy light decomposition for solving it. But I'm getting wrong answer and i've not still understood whats wrong.

The link of my code is here.

Thanks in advance.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский dhwanilpatel 2015-10-10 20:15:48 340 Initial revision (published)