求解最小机器重量设计2
1.采用回溯法求解#include<bits/stdc++.h>#define MAXN 102#define MAXM 102using namespace std;int n,m,cost;int w[MAXN][MAXM];int c[MAXN][MAXM];int bestx[MAXN];int x[MAXN];int cw=0,cc=0;int bestw=9999;bool find(int i,int j){ for(int k=1;k<i