摘要:
1 #include"cstdio" 2 #include"cstring" 3 #include"algorithm" 4 using namespace std; 5 int n;//菜的数量 6 int greens[1000+5]; 7 int m;//卡上余额 8 int main(){ 9 while(scanf("%d",&n)==1&&n){//输入菜... 阅读全文
摘要:
1 #include"cstring" 2 #include"cstdio" 3 const int maxn=100+5; 4 int nux[maxn]; 5 int nua[maxn];//解的集合 6 int t;//t为和 7 int n;//n为元素个数 8 bool flag;//判断是否有解 9 void dfs(int sum,int... 阅读全文