摘要:
#include#include#include#include#include#define Maxn 100using namespace std;int dp[1<<21],num[Maxn],bag[Maxn][Maxn],g,b,s,now[22];bool vi[Maxn];int dfs(int S,int now[]){ if(vi[S]) return dp[S]; if(S==0) return 0; int a[22],c[22]; int i,j,f; int ans=-10000000; int num=0; vi[S]=1;... 阅读全文