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. INF 36 -1277 -1277 3127 INF 7075 INF INF -1203 2573 INF 1240 2528 3143 4352 4885 -774 -2769 1288 4598 -1147 INF -2151 INF 6529 INF INF -4456 INF -1889 3418 INF 785 -459 725 1001 -526 INF 4257 INF 1292 INF 5299 INF 1979 3167 INF 2107 1880 8517 516 -1920 84 87 6589 INF INF 4271 -58 1945 2741 2365 -880 -1102 2033 INF 8456 INF 1171 7957 INF 2188 INF 4415 7041 1720 -1579 3977 -2258 INF -318 3906 INF 3410 2412 1942 1418 8278 84 1648 2118 -403 INF INF 1942 3697 INF -1384 INF INF INF -3641 3274 INF -56 4064 7496 0 INF 2020 6553 760 5141 4719 1440 INF 7275 4619 1175 INF 1478 4327 2435 2655 INF INF INF 402 4160 5840 2339 -1956 -1614 6250 1247 4313 INF 2220 4242 3852 1332 2284 2368 5989 -524 1566 1032 INF 3039 8618 2623 INF 3460 3439 3601 697 -2939 9338 -10 3130 3458 443 1491 30 6234 INF -980 -2578 3831 2921 INF 3056 -1581 8827 4885 929 2731 -1038 1712 INF INF -3871 5465 -3725 INF INF 5048 6496 -195 1180 INF -2290 1441 7221 INF 5309 INF INF 2217 INF 1154 6143 98 INF 1766
JOJ Answer
Invalid graph. Exiting.