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 512 1415 4757 1266 3705 2147483647 2297 1305 2147483647 2825 922 2147483647 2138 4248 2147483647 508 3492 3171 3084 89 2147483647 619 3792 2147483647 3129 2147483647 2147483647 4624 1552 2147483647 2147483647 2147483647 1387 2870 2147483647 4377 795 3518 374 3019 2147483647 3517 665 2147483647 2147483647 1858 3043 2147483647 2623 -877 2147483647 3024 2147483647 -2292 776 4264 3282 909 1134 2147483647 2147483647 2147483647 2147483647 2147483647 3345 930 2147483647 1039 1417 2147483647 2147483647 1260 2147483647 298 4444 2147483647 2147483647 3778 2147483647 2974 1554 861 3838 2840 1915 124 2147483647 2147483647 3231 2147483647 2147483647 1648 4637 2147483647 1341 371 2147483647 3841 2147483647 2147483647 550 4432 182 3600 2147483647 3617 2147483647 4008 Invalid graph. Exiting.
JOJ Answer
Invalid graph. Exiting.