
dp
小虎仔的csdn
欢迎来到算法的世界
展开
-
动态规划入门数值三角形
首先是递归程序 #include <cstdio> #include <iostream> #include <algorithm> #include <cstring> #include <cmath> using namespace std; typedef long long ll; int n; int a[101][101]...原创 2019-05-13 20:58:01 · 107 阅读 · 0 评论 -
最长上升子序列
#include <cstdio> #include <iostream> #include <algorithm> #include <cstring> #include <cmath> using namespace std; typedef long long ll; int a[1001]; int dp[1001]; in...原创 2019-05-14 13:11:31 · 139 阅读 · 0 评论 -
最长公共子序列
#include <cstdio> #include <iostream> #include <algorithm> #include <cstring> #include <cmath> using namespace std; typedef long long ll; char s1[100],s2[100]; int dp[1...原创 2019-05-14 13:31:30 · 135 阅读 · 0 评论 -
最佳加法表达式
#include <cstdio> #include <iostream> #include <algorithm> #include <cstring> #include <cmath> using namespace std; typedef long long ll; const int inf = 0x3f3f3f3f; con...原创 2019-05-14 21:24:06 · 321 阅读 · 0 评论