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
0 4673 -272 5183 2147483647 2147483647 -2209 2579 2674 3343 1547 2255 6054 3938 2147483647 3970 5178 5104 2147483647 1558 4183 3557 5367 1080 2817 4549 2147483647 450 -388 -704 Invalid graph. Exiting.
JOJ Answer
Invalid graph. Exiting.