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
相關文章
相關標籤/搜索