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
50049 0119 0219 0315 1421 158 1614 271 2827 2916 3108 3111 31226 41310 41410 41520 51616 5177 51814 6197 6200 62125 72217 72310 7248 82510 8268 82714 9280 92929 93019 103116 10320 103312 113415 11355 11362 12379 123828 123916 134024 134115 134228 144312 14446 144518 154616 15479 154819 164924 37369 14120 2307 17205 949 1397 393124 301210 152917 474824 473324 40311 33710 101214 313528 122227 35311 251510 48249 7286 16219 413127 4925 373522 35318 341714 174518 312 152823 3117 331916 01011 9463 254226 16259 483827 14299 48236 471525 74115 134320 46315 12216 47222 202326 13725 334524 43392 201725 174122 341122 53418 132021 2170 46394 18382 14814 36334 241624 28108 191216 94424 14350 182223 3157 12356 33380 111719 14208 183627 5118 181025 202225 0721 20127 182018 35405 184127 293726 441017 13412 49325 39193 34216 371517 204226 441910 111010 42131 19218 4135 304316 292225 3254 21494 351027 232726 434121 42812 473713 473713 Shortest path length is 35 The graph is not a DAG The total weight of MST is 379
JOJ Answer
Shortest path length is 35 The graph is not a DAG The total weight of MST is 269