1 | #include<cstdio> |
还是不懂为啥必须枚举区间,为啥起点要到2*n,为啥for(int i=1;i<=n;i++)
max1=max(max1,f[i][n+i-1]);
1 | #include<cstdio> |
还是不懂为啥必须枚举区间,为啥起点要到2*n,为啥for(int i=1;i<=n;i++)
max1=max(max1,f[i][n+i-1]);
组合背包12345678910111213141516171819202122232425262728293031323334#include<iostream>using namespace std;int v[9999];int w[9999];int k[9999];int f[9 …
朴素搜索 30分 tle 12345678910111213141516171819202122232425262728293031323334353637383940414243#include<cstdio>#include<iostream>using namespac …