{"url":"https://mayokoex.hatenablog.com/entry/2016/03/15/164050","description":"\u3053\u3093\u306a\u7c21\u5358\u306b\u89e3\u3051\u308b\u3068\u601d\u3063\u3066\u306a\u304b\u3063\u305f\u306e\u3067\u76ee\u304b\u3089\u30a6\u30ed\u30b3\u3067\u3057\u305f\u3002 \u554f\u984c codeforces.com \u89e3\u6cd5 dp[n][sum] = ([1, n], [2, n], ..., [n-1, n] \u3068\u3044\u3046\u533a\u9593\u3067, \u548c\u304c sum \u306b\u306a\u308b\u5834\u5408\u306e\u6570) \u3068\u3044\u3046\u306e\u3092\u8003\u3048\u307e\u3059(antimatter \u306e\u5206\u306f\u30de\u30a4\u30ca\u30b9\u3067\u6570\u3048\u308b\u306e\u3067, \u8981\u3059\u308b\u306b dp[n][0] \u306e\u548c\u304c\u7b54\u3048\u306b\u306a\u308a\u307e\u3059\u3002\u305f\u3060, \u30b3\u30fc\u30c9\u4e0a dp[5][-4] \u3068\u304b\u306f\u51fa\u6765\u306a\u3044\u306e\u3067\u4e0b\u306e\u30b3\u30fc\u30c9\u3067\u306f MAX \u5206\u3060\u3051\u30aa\u30d5\u30bb\u30c3\u30c8\u3092\u3068\u3063\u3066\u3044\u308b\u3068)\u3002\u307e\u305a, \u666e\u901a\u306b dp[n-1][sum] \u3092\u4f7f\u3063\u3066, dp[n][sum+a], dp[n][sum-a] \u306b\u5834\u5408\u306e\u6570\u3092\u4f1d\u642c\u3055\u2026","image_url":null,"height":"190","provider_url":"https://hatena.blog","blog_title":"mayoko\u2019s diary","author_name":"mayokoex","author_url":"https://blog.hatena.ne.jp/mayokoex/","width":"100%","categories":["CodeForces"],"provider_name":"Hatena Blog","type":"rich","published":"2016-03-15 16:40:50","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F03%2F15%2F164050\" title=\"Codeforces Round #225 (Div. 1) D. Antimatter - mayoko\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"Codeforces Round #225 (Div. 1) D. Antimatter","blog_url":"https://mayokoex.hatenablog.com/"}