Help in implementation of dynamic connectivity problem
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!
Codeforces Round 946 Solution Discussion