Notes
This function is in beta test. Please help improve it in the issues
here.
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.
Please double check your code to solve this problem and try again.
Your Answer
STDIN: 200 0 199 STDIN: STDIN: 0 1 11 STDIN: 0 2 24 STDIN: 1 3 20 STDIN: 1 4 16 STDIN: 2 5 2 STDIN: 2 6 6 STDIN: 3 7 22 STDIN: 3 8 7 STDIN: 4 9 18 STDIN: 4 10 3 STDIN: 5 11 5 STDIN: 5 12 11 STDIN: 6 13 2 STDIN: 6 14 27 STDIN: 7 15 17 STDIN: 7 16 12 STDIN: 8 17 20 STDIN: 8 18 26 STDIN: 9 19 10 STDIN: 9 20 17 STDIN: 10 21 15 STDIN: 10 22 6 STDIN: 11 23 11 STDIN: 11 24 18 STDIN: 12 25 21 STDIN: 12 26 21 STDIN: 13 27 11 STDIN: 13 28 27 STDIN: 14 29 14 STDIN: 14 30 8 STDIN: 15 31 23 STDIN: 15 32 0 STDIN: 16 33 12 STDIN: 16 34 4 STDIN: 17 35 2 STDIN: 17 36 0 STDIN: 18 37 13 STDIN: 18 38 22 STDIN: 19 39 26 STDIN: 19 40 27 STDIN: 20 41 14 STDIN: 20 42 17 STDIN: 21 43 3 STDIN: 21 44 28 STDIN: 22 45 8 STDIN: 22 46 28 STDIN: 23 47 14 STDIN: 23 48 17 STDIN: 24 49 14 STDIN: 24 50 0 STDIN: 25 51 6 STDIN: 25 52 20 STDIN: 26 53 7 STDIN: 26 54 4 STDIN: 27 55 21 STDIN: 27 56 22 STDIN: 28 57 0 STDIN: 28 58 9 STDIN: 29 59 27 STDIN: 29 60 1 STDIN: 30 61 13 STDIN: 30 62 29 STDIN: 31 63 1 STDIN: 31 64 16 STDIN: 32 65 18 STDIN: 32
JOJ Answer
Shortest path length is 82 The graph is a DAG The total weight of MST is 2843