区间dp
WA_automation
这个作者很懒,什么都没留下…
展开
-
P1880 [NOI1995]石子合并
https://www.luogu.org/problemnew/show/P1880 #include <bits/stdc++.h> using namespace std; typedef long long LL; const LL INF=0x3f3f3f3; LL dp1[205][205],dp2[205][205],sum[205],a[205]; int N; int...原创 2019-01-18 10:58:34 · 119 阅读 · 0 评论 -
P1063 能量项链
https://www.luogu.org/problemnew/show/P1063 #include <bits/stdc++.h> using namespace std; typedef long long LL; const LL INF=1<<30; int N; LL dp[205][205],a[205]; int main() { ios::syn...原创 2019-01-18 12:46:53 · 114 阅读 · 0 评论