{"categories":["AtCoder","\u9244\u5247\u672c","\u9244\u5247\u672cA\u554f\u984c","\u9244\u5247\u672c\u26055","NoviSteps1Q","DP","LIS","\u305d\u306e\u307e\u307e\u899a\u3048\u305f\u3044\u5178\u578b\u554f\u984c","in-place DP","DP\u9ad8\u901f\u5316:\u30bb\u30b0\u30e1\u30f3\u30c8\u6728\u4e0a\u306ein-placeDP"],"blog_url":"https://drken1215.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2024%2F09%2F29%2F141447\" title=\"\u9244\u5247\u672c A24 - LIS (1Q, \u26055) - \u3051\u3093\u3061\u3087\u3093\u306e\u7af6\u30d7\u30ed\u7cbe\u9032\u8a18\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","author_url":"https://blog.hatena.ne.jp/drken1215/","author_name":"drken1215","version":"1.0","blog_title":"\u3051\u3093\u3061\u3087\u3093\u306e\u7af6\u30d7\u30ed\u7cbe\u9032\u8a18\u9332","description":"LIS\u3002\u9244\u5247\u672c\u306e\u554f\u984c\u306a\u306e\u3067\u30b3\u30fc\u30c9\u306e\u307f\u3002 \u554f\u984c\u3078\u306e\u30ea\u30f3\u30af \u554f\u984c\u6982\u8981 \u9577\u3055 \u306e\u6570\u5217 \u306e LIS \u306e\u9577\u3055\u3092\u6c42\u3081\u3088\u3002 \u5236\u7d04 \u30b3\u30fc\u30c9 #include <bits/stdc++.h> using namespace std; const int INF = 1 << 29; int main() { int N, res = 0; cin >> N; vector<int> A(N); for (int i = 0; i < N; i++) cin >> A[i]; // dp[v] := A \u304b\u3089\u9577\u3055 v \u306e IS \u3092\u3068\u3063\u305f\u3068\u304d\u306e\u3001\u6700\u7d42\u9805\u306e\u5024\u306e\u6700\u5c0f\u5024 vector<int> dp(N+1, INF);\u2026","provider_name":"Hatena Blog","title":"\u9244\u5247\u672c A24 - LIS (1Q, \u26055)","type":"rich","height":"190","provider_url":"https://hatena.blog","published":"2024-09-29 14:14:47","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/80936665/1687765056723440","url":"https://drken1215.hatenablog.com/entry/2024/09/29/141447"}