What's wrong with this Graph solution.Get TLE everytime.

Revision en1, by antivenom, 2015-07-11 01:29:13

Hello all,with best of my knowledge I wrote my 3rd graph solution for this question.I spent so much time thinking on it but after submitting it,it gave out TLE.As i am amateur in Graphs,I will be obliged if some one come out for help :) link of my code

Tags graphs, 3rd solution ever, tle, again, spoj

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English antivenom 2015-07-11 01:29:13 377 Initial revision (published)