Problem updated (please see Output section)
A company aimed at becoming the first company that solved the MDT problem for factories and restaurants. The MDT problem is easy to explain in an undirected connected graph. Find k vertex-disjoint (excluding 1, n that will appear in every path) simple paths from 1 to n. If the maximum length of these paths is denoted by M, then minimize Mk.
Input format
Output format
Verdict, scoring, and test generation plan
You can find all the information here.
5 13 1 2 55204 1 3 82348 3 4 32610 5 2 41029 1 5 114074 1 4 37701 1 4 207032 1 4 143497 2 3 98514 1 5 7027 2 1 133622 2 4 46926 2 1 71601
Score=48116.
Note that choosing k=1 and paths={{10}} will obtain a less score (7027) which is better.