摘要: 最长上升子序列 1、\(O(n^{2})\) 简单DP做法 \[dp[i]=\max_{h[j] < h[i]} [dp[j] + 1] \]#include<bits/stdc++.h> using namespace std; const int N = 105; int h[N]; int d 阅读全文
posted @ 2023-11-18 09:58 A_sc 阅读(31) 评论(0) 推荐(0) 编辑