I tried to solve a classic probjem by using dijkstra with set, but got TLE.
I could not find out the reason why. Here is my code: Submission 65475444
Can you suggest any reasons? Thank you!
TLE on classic dijkstra problem
I tried to solve a classic probjem by using dijkstra with set, but got TLE.
I could not find out the reason why. Here is my code: Submission 65475444
Can you suggest any reasons? Thank you!