Help in implementation of dynamic connectivity problem

Revision en1, by pk842, 2019-09-10 20:46:33

Hello I recently learned DCP trick. I had tried implementing it but my implementation give WA on DYNACON1 of SPOJ and MLE on CF 100551.

Can someone please suggest what is wrong in the solution or can give any better implementations?

Thanks!

Tags #help, #dcp, #trees

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English pk842 2019-09-10 20:46:33 509 Initial revision (published)