1045 Favorite Color Stripe (30 point(s))

题解 LIS模板题。 #include<iostream> #include<cstdio> #include<algorithm> using namespace std; const int MAXN = 1e4 + 10; const int MAXM = 2e2 + 10; bool book[MAXM]; //标记那些颜色是需要的, 便于去除其它颜色 int t[MAXN], dp[MA
相关文章
相关标签/搜索