摘要:
直接暴力的#include <stdio.h>#include <string.h>#define maxn 21int matrix[maxn][maxn];int sel[maxn];int n;int max;int tot;void select(int cur){ if(cur==n) { if(tot==n||tot==0) return; int i,j; int amount=0; for(i=0;i<n;i++) { if(!sel[i]) continue; for(j=0;j<n;j++) { if(sel[j]) continue; 阅读全文