{"image_url":"http://cdn-ak.f.st-hatena.com/images/fotolife/a/a_kawashiro/20110430/20110430224945.gif","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","categories":["topcoder"],"blog_url":"https://a-kawashiro.hatenablog.com/","width":"100%","height":"190","description":"\u30b9\u30c6\u30fc\u30b8\uff11\uff1a \uff14\u756a\u3092\u7206\u7834\u3057\u305f\u3068\u3059\u308b\u3002\u3059\u308b\u3068\uff11\u756a\u3082\u958b\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002 \u3053\u306e\u3088\u3046\u306a\u9023\u9396\u95a2\u4fc2\u3067\u7bb1\u3092\u5206\u3051\u308b\u3002 \u3053\u306e\u30b0\u30eb\u30fc\u30d7\u306e\u6570\u304c\u7206\u5f3e\u306e\u6570\u3088\u308a\u5c11\u306a\u3044\u306a\u3089\u3059\u3079\u3066\u306e\u7bb1\u3092\u958b\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002 \u305d\u306e\u3088\u3046\u306b\u306a\u308b\u7bb1\u306e\u5206\u3051\u65b9\u306e\u5834\u5408\u306e\u6570\u3092\u6c42\u3081\u3066(\u7bb1\u306e\u6570)!\u3067\u5272\u308c\u3070\u3044\u3044\u3002 \u30b9\u30c6\u30fc\u30b8\uff12\uff1a \u201dDP[\u7bb1\u306e\u6570][\u30b0\u30eb\u30fc\u30d7\u306e\u6570]\uff1d\u5206\u3051\u65b9\u201d\u3068\u3044\u3046DP\u3092\u8003\u3048\u308b\u3002 DP[1][1]=1\u306f\u660e\u3089\u304b DP[i][j]\u306f\uff11\uff1a\u7bb1i\u304c\uff11\u3064\u3067\uff11\u30b0\u30eb\u30fc\u30d7\u3092\u5f62\u6210\u3059\u308b\u5834\u5408\u304cDP[i-1][j-1] \uff12\uff1a\u7bb1i\u304c\u4ed6\u306e\u30b0\u30eb\u30fc\u30d7\u306b\u5165\u308a\u8fbc\u3080\u5834\u5408\u306f(i-1)*DP[i-1][j] (i-1\u500b\u306e\u7bb1\u3092\u3092j\u500b\u306e\u30b0\u30eb\u30fc\u30d7\u306b\u5206\u3051\u305f\u3042\u3068\u7bb1i\u3092\u62bc\u3057\u8fbc\u3080\uff09 \u30b9\u30c6\u30fc\u30b8\uff13\uff1a \u898f\u7d04\u5206\u6570\u306b\u2026","author_url":"https://blog.hatena.ne.jp/a_kawashiro/","title":"SRM391 div1 medium","type":"rich","url":"https://a-kawashiro.hatenablog.com/entry/20110430/1304172356","author_name":"a_kawashiro","blog_title":"a_kawashiro\u306e\u30d6\u30ed\u30b0","version":"1.0","published":"2011-04-30 23:05:56","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa-kawashiro.hatenablog.com%2Fentry%2F20110430%2F1304172356\" title=\"SRM391 div1 medium - a_kawashiro\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}