摘要:
石子合并<1> 领域展开 #include <bits/stdc++.h> using namespace std; const int maxn = 200; int s[maxn]; int f[maxn][maxn], g[maxn][maxn]; int main() { int n; ci 阅读全文
摘要:
线性dp的两个经典题目: 1.最长上升子序列(LIS) 难的是输出路径(递归输出即可) 领域展开 #include <bits/stdc++.h> using namespace std; const int maxn =2024; int cnt=0,ans=1; int f[maxn],a[ma 阅读全文