|
|
вернуться в форумGive me some tests I think that my program is correct, but i don't understand why i have WA#5. I use Dejkstra algorithm. Please, give me some right tests. Than I use another method - DP. I use 2 arrays for the current and previous states, but I have WA#7. Help!!! Thanks. Edited by author 06.10.2006 22:31 Edited by author 06.10.2006 22:31 Edited by author 06.10.2006 22:31 Re: Give me some tests As i know - Dejkstra dosn't work for graph with negative weight of edge. Re: Give me some tests 3 2 1 15 0 1 5 0 * 4 1 -5 2 10 0 1 3 0 2 40 0 0 * 3 1 1 2 5 3 -5 0 2 -19 3 -20 0 4 -100 0 Answer is -1 |
|
|