{"blog_url":"https://baitop.hatenadiary.jp/","url":"https://baitop.hatenadiary.jp/entry/2019/03/03/164433","type":"rich","published":"2019-03-03 16:44:33","provider_name":"Hatena Blog","image_url":null,"author_name":"baitop","height":"190","title":"educational dp contest Y - Grid 2","author_url":"https://blog.hatena.ne.jp/baitop/","description":"Y - Grid 2 \u89e3\u6cd5\u58c1\u3078\u884c\u3051\u308b\u4e8b\u306b\u3059\u308b\u3002dp[i] := i\u3078\u306e\u884c\u304d\u65b9\u306e\u3046\u3061\u3001\u4ed6\u306e\u58c1\u3092\u901a\u3089\u306a\u3044\u3088\u3046\u306a\u5834\u5408\u306e\u6570\u3068\u3059\u308b\u3002\u3053\u3053\u3067\u3001\u30b4\u30fc\u30eb\u5730\u70b9g\u3092\u58c1\u3068\u3057\u3066\u3084\u308b\u3068\u3001dp[g]\u304c\u7b54\u3048\u3067\u3042\u308b\u3002 \u9077\u79fb\u65b9\u6cd5\u306f\u3001i\u306e\u5de6\u4e0a\u306b\u3042\u308b\u4efb\u610f\u306e\u58c1j\u3067dp[i] = i\u3078\u306e\u884c\u304d\u65b9 - sum(dp[j]\u304b\u3089i\u3078\u884c\u304f\u65b9\u6cd5)\u3068\u306a\u308b Submission #4439088 - Educational DP Contest vi vh, vw;digraph<> g(2 * k5);void solve() { cin >> H >> W >> n; na2d(vh, vw, n); n++; vh += H - 1; vw +\u2026","width":"100%","provider_url":"https://hatena.blog","blog_title":"\u30d0\u30a4\u30c8\u306e\u7af6\u30d7\u30ed\u30e1\u30e2","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaitop.hatenadiary.jp%2Fentry%2F2019%2F03%2F03%2F164433\" title=\"educational dp contest Y - Grid 2 - \u30d0\u30a4\u30c8\u306e\u7af6\u30d7\u30ed\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","categories":[]}