Still Need to optimize my code for Dijkstra algo

Revision en1, by -B1nary-, 2019-10-08 13:15:31

Hello everyone, I was solving this Problem 20C - Dijkstra? and wrote a code and submitted but it gave me a TLE on test 28. Can I still improve my code's efficiency? I am not able to figure it out how to do so. Thanks.

My code
Tags #graphs, #dijkstra

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English -B1nary- 2019-10-08 13:15:31 1341 Initial revision (published)