{"type":"rich","title":"AtCoder AGC 021 D - Reversed LCS (\u9ec4\u8272, 900 \u70b9)","blog_title":"\u3051\u3093\u3061\u3087\u3093\u306e\u7af6\u30d7\u30ed\u7cbe\u9032\u8a18\u9332","description":"\u9762\u767d\u304b\u3063\u305f \u554f\u984c\u3078\u306e\u30ea\u30f3\u30af \u554f\u984c\u6982\u8981 \u6587\u5b57\u5217 \u304c\u4e0e\u3048\u3089\u308c\u308b\u3002\u3042\u3089\u304b\u3058\u3081\u6587\u5b57\u5217\u306e\u4e2d\u306e \u6587\u5b57\u3092\u81ea\u7531\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002 \u3053\u3046\u3057\u3066\u5f97\u3089\u308c\u305f\u6587\u5b57\u5217\u3068\u3001\u305d\u308c\u3092\u53cd\u8ee2\u3057\u305f\u6587\u5b57\u5217\u306e LCS (\u6700\u9577\u5171\u901a\u90e8\u5206\u5217) \u306e\u9577\u3055\u3068\u3057\u3066\u8003\u3048\u3089\u308c\u308b\u6700\u5927\u5024\u3092\u6c42\u3081\u3088\u3002 \u5236\u7d04 \u8003\u3048\u305f\u3053\u3068 \u3082\u3057 \u3060\u3063\u305f\u3089\u3001 dp[ i ][ j ] := \u306b\u3064\u3044\u3066\u5de6\u304b\u3089 i \u6587\u5b57\u5206\u3001\u53f3\u304b\u3089 j \u6587\u5b57\u5206\u306e\u4e2d\u3067\u306e LCS \u306e\u9577\u3055 \u3068\u3044\u3046\u611f\u3058\u306b\u89e3\u304f\u3053\u3068\u304c\u3067\u304d\u305d\u3046\u3002\u666e\u901a\u306b LCS \u3092\u6c42\u3081\u308b DP \u3068\u540c\u69d8\u306b\u3057\u3066 chmax(dp[ i + 1 ][ j ], dp[ i ][ j ]) chmax(dp[ i ][ j + 1 ], dp[ i ][ j\u2026","provider_name":"Hatena Blog","height":"190","provider_url":"https://hatena.blog","url":"https://drken1215.hatenablog.com/entry/2019/04/26/183309","published":"2019-04-26 18:33:09","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/80936665/1516148889515660","blog_url":"https://drken1215.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2019%2F04%2F26%2F183309\" title=\"AtCoder AGC 021 D - Reversed LCS (\u9ec4\u8272, 900 \u70b9) - \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>","categories":["AtCoder","AGC-D","\u6700\u9069\u5316\u306e\u8003\u5bdf\uff1a\u5909\u6570\u3092\u5165\u308c\u66ff\u3048\u3066\u8003\u3048\u308b","\u76e4\u9762\u3092\u4e88\u3081\u5909\u66f4\u3059\u308b","\u6587\u5b57\u5217","\u56de\u6587","DP","LCS","\u64cd\u4f5c","AtCoder900\u70b9","\u64cd\u4f5c\u5f8c\u306e\u7d50\u679c\u306e\u6700\u9069\u5316\u554f\u984c","\u6700\u5927\u30b9\u30b3\u30a2","\u9ec4\u8272diff","LCS\u578bDP","\u64cd\u4f5c\u3092\u3061\u3087\u3046\u3069K\u56de\u884c\u3046","\u6700\u9069\u5316\u554f\u984c"],"width":"100%","author_url":"https://blog.hatena.ne.jp/drken1215/","version":"1.0","author_name":"drken1215"}