← 返回 microsoft 的题目列表Shortest Tour Returning to Start in a Weighted Graph (TSP Variant)
类型:online_judge
Given a weighted graph. Starting from node s, you need to make a tour and return to s with minimum total distance, under the problem's visitation requirement (typically visiting every node exactly once or at least once).
Compute the minimum total distance.
Input
First line: n m s
Next m lines: u v w
Output
Print the minimum tour length.
Note: The original description is incomplete (e.g., whether all nodes must be visited, graph type, and constraints). The exact solution depends on these missing details.