Comments
On WILdoubt about code?, 11 years ago
+1

Maybe this can help.

On MikeMirzayanovCodeforces 5 years, 11 years ago
+22

Happy Birthday Codeforces! :)

In Dijkstra's algorithm using std::priority_queue is better to use the comparison function "greater <pair <int,int> >" instead of "less <pair <int,int> >" because takes less time to find the shortest path :).