Shortest route 1 | CSES

Revision en1, by mkmeden, 2022-08-12 18:25:35

This is the task and at the first look its obvious that its a standard dijkstra problem, But due to some reason my code is giving TLE for 2 large test cases which I am sure the standard dijkstra code should be able to handle. Can someone take a look at this and provide some insight.


Failing TCs :

Tags graphs, dijkstra, cses


  Rev. Lang. By When Δ Comment
en2 English mkmeden 2022-08-12 18:28:30 3 (published)
en1 English mkmeden 2022-08-12 18:25:35 2012 Initial revision (saved to drafts)