原创 最大連續子序列和
#include <iostream> #include <algorithm> using namespace std; const int maxn = 1000; int a[maxn], dp[maxn]; int mai
原创 最大連續子序列和
#include <iostream> #include <algorithm> using namespace std; const int maxn = 1000; int a[maxn], dp[maxn]; int mai
原创 最大連續子序列和
#include <iostream> #include <algorithm> using namespace std; const int maxn = 1000; int a[maxn], dp[maxn]; int mai
原创 最大連續子序列和
#include <iostream> #include <algorithm> using namespace std; const int maxn = 1000; int a[maxn], dp[maxn]; int mai
原创 最長公共子序列
#include <iostream> #include <algorithm> using namespace std; const int maxn = 1000; char a[maxn], b[maxn]; int dp[
原创 最大連續子序列和
#include <iostream> #include <algorithm> using namespace std; const int maxn = 1000; int a[maxn], dp[maxn]; int mai
原创 最大連續子序列和
#include <iostream> #include <algorithm> using namespace std; const int maxn = 1000; int a[maxn], dp[maxn]; int mai
原创 最大連續子序列和
#include <iostream> #include <algorithm> using namespace std; const int maxn = 1000; int a[maxn], dp[maxn]; int mai
原创 最大連續子序列和
#include <iostream> #include <algorithm> using namespace std; const int maxn = 1000; int a[maxn], dp[maxn]; int mai
原创 最長不下降子序列
#include <iostream> #include <algorithm> using namespace std; const int maxn = 1000; int a[maxn], dp[maxn]; int mai
原创 數塔問題
#include <iostream> #include <algorithm> using namespace std; const int maxn = 1000; int f[maxn][maxn], dp[maxn][ma
原创 最大連續子序列和
#include <iostream> #include <algorithm> using namespace std; const int maxn = 1000; int a[maxn], dp[maxn]; int mai
原创 最大連續子序列和
#include <iostream> #include <algorithm> using namespace std; const int maxn = 1000; int a[maxn], dp[maxn]; int mai
原创 區間覆蓋
#include <iostream> #include <algorithm> #include <cmath> using namespace std; const int maxn = 15000 + 10; //const
原创 區間選點
#include <iostream> #include <algorithm> using namespace std; const int maxm = 5000 + 10; const int maxn = 3e4 + 10