Ive implemented a really simple Dijsktra using STL priority queues
Im getting a WA and I can figure out why. Help me guys!
CODE LINK : http://ideone.com/AMFY75
QUESTION LINK : http://www.spoj.com/problems/TSHPATH/
- Use fast i/o.
- Set INF to a higher value as distance can reach upto 10000*200000.
- Reset the d array to INF after finding each path.