GETTING TLE IN 472D ( FOLLOWING EDITORIAL)

Revision en1, by javacoder1, 2015-12-31 02:18:17

my submission:

http://codeforces.net/contest/472/submission/15130187

is getting TLE on test 10.I have founded the minimum spanning tree and then calculated the distance between each pair of nodes using BFS.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English javacoder1 2015-12-31 02:18:17 254 Initial revision (published)