Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Mistake on 3255

Posted by testingAcc at 2009-04-18 12:08:30
Hi all. I got AC on 3255 using a variant of Dijkstra's algorithm
(expanding twice instead of only once). After getting AC I used this test case:

6 6
1 2 4
2 3 3
3 6 1
6 5 3
5 4 2
4 1 3

And it outputs 8 (which is wrong, since the shortest path has also a total length of 8).

Then, what is the correct approach to this problem ?

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator