摘要:
emm就直接看的前辈的了。 唉 #include <stdio.h> #include <string.h> #include <algorithm> //我不成熟的想法是两成遍历 //但感觉会时间超限,但没有先想到深度搜索 using namespace std; int n,t; int num 阅读全文
摘要:
就是背包01问题 #include<iostream> #include<cstring> /*01背包问题*/ using namespace std; const int maxn = 120; const int maxm = 1e5 + 10; int dp[maxm],a[maxm]; i 阅读全文