TLE in problem 888-G Xor-MST

Revision en2, by tanujWF, 2017-11-13 16:24:57

I read the editorial and tried to implement the same in my code but I am getting TLE. Please help me find out the error and suggest any optimizations.(Tried my submission on my local compiler on a randomly generated test file with worst case inputs and it is taking 6 seconds to compute).

http://mirror.codeforces.com/contest/888/submission/32207497

Tags #help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English tanujWF 2017-11-13 16:24:57 138
en1 English tanujWF 2017-11-11 02:06:08 236 Initial revision (published)