ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1004. Sightseeing Trip

WA 2
Posted by Axis 19 Jan 2015 21:32
Hello.
Do not pass the test number two. Tested the algorithm all the data found on the Internet, all the tests pass. What is important is whether the value of the order of numbers in the answer? Whether equivalent variants "1 2 3 4" and "3 4 1 2"?
Perhaps you can give a piece of advice.
Re: WA 2
Posted by kerpoo 19 Aug 2015 02:18
Be careful about multiple edges
It causes bugs in your dijkstra alg...

Edited by author 19.08.2015 02:19