help in 1063 B

Правка en2, от kumarpratyush4, 2019-05-17 10:39:41

https://codeforces.me/problemset/problem/1063/B this question can be done with djikstra as well. but dont know y its giving TLE. https://ideone.com/Az9ZAL (its properly commented -running and no templates are used so wont be tough to read) .using djikstra i am assigning 1 unit weight to all the left edges. if anyone can suggest any optimization i would be very thankful. UPD-error found i was putting less than -equal sign for checking djikstra

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский kumarpratyush4 2019-05-17 10:39:41 75
en1 Английский kumarpratyush4 2019-05-16 23:34:52 391 Initial revision (published)