Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

Help needed in implementation of Dijkstra's algorithm

Правка en1, от samurai123, 2017-01-10 07:41:25

I was solving SHPATH on spoj LINK. It is direct implementation of dijkstra's algorithm but my code is constantly giving runtime error. The error is always occuring when it is extracting last element from priority queue. Can anybody help and tell the reason ? LINK OF CODE

Теги dijkstra, dijkstrs, all-shortest-path

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский samurai123 2017-01-10 07:41:25 392 Initial revision (published)