How to solve Spoj QTREE4 using Centroid Decomposition

Правка en1, от chai_peelo, 2019-04-04 21:14:17

I am trying to solve https://www.spoj.com/problems/QTREE4/ using centroid decomposition, but I am not able to solve it.

It would be appreciated if someone could help me with the approach.

Thanks in advance!

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский chai_peelo 2019-04-04 21:14:17 265 Initial revision (published)