摘要:
题见洛谷#include#include#include#include #includeusing namespace std;long long ans=0;int a[300],n,f[300][300];int main(){ scanf("%d",&n); f... 阅读全文
posted @ 2017-02-08 16:35
primes
阅读(84)
评论(0)
推荐(0)
摘要:
题见洛谷由于依赖少 , 可以改为分组背包 #include#include#include#include #includeusing namespace std;int v[210],c[210],n,m,wj[210][3],wpv[210],wpc[210]; int f[... 阅读全文
posted @ 2017-02-08 15:03
primes
阅读(126)
评论(0)
推荐(0)
摘要:
题见洛谷记忆化搜索#include#include#include#include #includeusing namespace std;int num[5],a0[400];int dp[40][40][40][40],ans=0;int n,m;int dfs(int x,i... 阅读全文
posted @ 2017-02-08 09:44
primes
阅读(176)
评论(0)
推荐(0)

浙公网安备 33010602011771号