解题思路 核心思想: 使用状态压缩DP解决,状态表示为 ,其中 表示当前点, 表示已访问点集合 表示当前在点 ,已经访问了 表示的点集合时的最小花费 通过二进制表示已访问的点集合 状态转移: 对于当前状态 ,枚举下一个要访问的点 代码 cpp java python #include <bits/stdc++.h> using namespace std; const int N = 205; const int M = 16; const int INF = 0x3f3f3f3f; int n, m, R; int dist[N][N...