Help in Spoj- QTREE .Getting WA

Правка en1, от kishore_p, 2018-09-15 17:07:29

Solving This problem using Heavy-light Decomposition after reading from this blog. Tried all cases from spoj tool kit it works fine but still getting wrong answer. I have written a neat code. Please help

Теги heavy-light, #spoj, qtree, #trees

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский kishore_p 2018-09-15 17:07:29 364 Initial revision (published)