{"height":"190","provider_name":"Hatena Blog","author_name":"mmxsrup","categories":["yukicoder","dp"],"version":"1.0","blog_title":"srup\u306e\u30e1\u30e2\u5e33","image_url":null,"width":"100%","description":"\u554f\u984c \u554f\u984c\u6982\u8981 N\u500b\u306e\u5bff\u53f8\u304c\u4e26\u3093\u3067\u3044\u308b\u3002\u9806\u756a\u306b\u98df\u3079\u3066\u3044\u304f\u304c\u3001\u9023\u7d9a\u3057\u3066\u98df\u3079\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3002\u5bff\u53f8\u306b\u306f\u304a\u3044\u3057\u3055\u304c\u305d\u308c\u305e\u308c\u6c7a\u307e\u3063\u3066\u3044\u308b\u3002\u98df\u3079\u305f\u5bff\u53f8\u306e\u304a\u3044\u3057\u3055\u306e\u5408\u8a08\u306e\u6700\u5927\u5024\u3092\u6c42\u3081\u3088\u3002\u307e\u305f\u3069\u306e\u5bff\u53f8\u3092\u98df\u3079\u305f\u304b\u3082\u6c42\u3081\u308b\u3002\u7d4c\u8def\u5fa9\u5143\u3002 \u89e3\u6cd5 \u52d5\u7684\u8a08\u753b\u6cd5\u3067\u89e3\u304f\u3002dp[i][j] := i\u756a\u76ee\u306e\u304a\u5bff\u53f8\u307e\u3067\u3092\u8003\u3048\u3066\u3001j=1\u306e\u6642\u306f\u3001i\u756a\u76ee\u306e\u5bff\u53f8\u3092\u98df\u3079\u3001j=0\u306e\u6642\u306f\u3001i\u756a\u76ee\u306e\u5bff\u53f8\u3092\u98df\u3079\u3066\u3044\u306a\u3044 \u3068\u5b9a\u3081\u3066\u3001dp[0][0] = 0\u304b\u3089\u30eb\u30fc\u30d7\u3067\u56de\u3057\u3066\u3044\u304f\u3002 j == 0\u306e\u6642\u306f dp[i + 1][0] = max(dp[i + 1][0], dp[i][0]) \u98df\u3079\u306a\u3044 -(1) dp[i + 1][1] = max(dp[\u2026","url":"https://mmxsrup.hatenablog.com/entry/2016/10/07/173154","type":"rich","published":"2016-10-07 17:31:54","title":"yukicoder No.258 \u56de\u8ee2\u5bff\u53f8(2)","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmmxsrup.hatenablog.com%2Fentry%2F2016%2F10%2F07%2F173154\" title=\"yukicoder No.258 \u56de\u8ee2\u5bff\u53f8(2) - srup\u306e\u30e1\u30e2\u5e33\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://mmxsrup.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/mmxsrup/"}