{"published":"2019-01-08 23:14:06","image_url":null,"categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"height":"190","version":"1.0","description":"https://atcoder.jp/contests/dp/tasks/dp_e \u524d\u63d0\u77e5\u8b58 \u52d5\u7684\u8a08\u753b\u6cd5 \u89e3\u8aac https://atcoder.jp/contests/dp/submissions/3946715\u30ca\u30c3\u30d7\u30b5\u30c3\u30af\u554f\u984c\u306e\u3088\u304f\u3042\u308b\u5909\u5f62\u3002 \u72b6\u614b\u3068\u3057\u3066\u4fdd\u6301\u3059\u308b\u7269\u3092\u5909\u5f62\u3057\u3066\u89e3\u304f\u3002 \u3068\u3044\u3046\u3088\u308a\u3001\u89e3\u304f\u6d41\u308c\u3068\u3057\u3066\u306f\u30011. dp[N][W]\u3067\u306f\u72b6\u614b\u6570\u306f\u7121\u7406 2. dp[N][V]\u306a\u3089\u3061\u3087\u3046\u3069\u3044\u3044\u304b\u3089\u3001\u3053\u3063\u3061\u3067\u8003\u3048\u308b\u307f\u305f\u3044\u306a\u5236\u7d04\u304b\u3089\u8003\u3048\u308b\u5834\u5408\u304c\uff08\u81ea\u5206\u306f\uff09\u591a\u3044\u3002 \u306a\u306e\u3067\u3001 dp[i][val] := i\u756a\u76ee\u307e\u3067\u306e\u5546\u54c1\u3092\u5165\u308c\u3066\u3001\u4fa1\u5024\u306e\u7dcf\u548c\u304cval\u3067\u3042\u308b\u5834\u5408\u306e\u91cd\u3055\u306e\u7dcf\u548c\u306e\u6700\u5c0f\u5024 \u3092\u89e3\u304f\u3002 \u66f4\u65b0\u306f\u3001\u4e00\u822c\u7684\u306a\u30ca\u2026","author_url":"https://blog.hatena.ne.jp/hamayanhamayan/","provider_name":"Hatena Blog","type":"rich","width":"100%","provider_url":"https://hatena.blog","author_name":"hamayanhamayan","url":"https://blog.hamayanhamayan.com/entry/2019/01/08/231406","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F01%2F08%2F231406\" title=\"Knapsack 2 [Educational DP Contest / DP \u307e\u3068\u3081\u30b3\u30f3\u30c6\u30b9\u30c8 E] - \u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093","title":"Knapsack 2 [Educational DP Contest / DP \u307e\u3068\u3081\u30b3\u30f3\u30c6\u30b9\u30c8 E]","blog_url":"https://blog.hamayanhamayan.com/"}