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
Invalid graph. Exiting. 1-2917 -714 INF 3593 INF 5384 3333 2448 4794 INF 2745 649 4323 608 INF INF 77 4256 -3315 INF INF 2058 2174 INF 183 4314 INF INF INF 271 2299 INF INF INF 2911 4273 1720 INF INF INF 1684 1062 INF 4398 1178 INF 4329 INF INF 2190 1851 852 INF INF INF 2782 2951 3006 INF 2511 829 INF INF 2497 INF 1720 3653 1454 3265 INF 3429 1250 757 1588 INF 1339 6179 2116 INF 3457 INF INF 2154 INF INF 655 3354 3350 INF 2615 2309 5109 INF 1010 INF 4644 INF INF 4539 INF 1139 INF 5765 4800 INF INF INF 2594 INF 1520 1545 2766 INF 5856 873 INF 438 INF INF 2925 INF 2218 3183 INF 2389 1605 24 INF -2392 3457 1076 INF 1527 3785 INF 4310 2537 1777 4378 INF 859 INF 5564 INF INF INF INF 2382 3807 4209 INF 617 534 INF 2287 3179 INF 3189 1741 INF 2890 3655 INF 912 INF 1870 4387 INF INF 3663 4524 INF 1899 2712 INF 3740 4421 INF INF 3504 295 INF INF 713 561 3295 INF 4413 INF 3434 INF 1094 INF 3054 INF INF 183 INF INF INF 3360 INF INF 5002 INF INF 318 1788 1393 INF INF INF INF 72 INF 4144 3053 460 3117 3973 INF INF 4622 44
JOJ Answer
Invalid graph. Exiting.