<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hamayanhamayan</author_name>
  <author_url>https://blog.hatena.ne.jp/hamayanhamayan/</author_url>
  <blog_title>はまやんはまやんはまやん</blog_title>
  <blog_url>https://blog.hamayanhamayan.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>https://atcoder.jp/contests/dp/tasks/dp_d 前提知識 動的計画法 解説 https://atcoder.jp/contests/dp/submissions/3946683一般的なナップサック問題。 dp[i][tot] := i番目までの商品を入れて、重さの総和がtotである場合の価値の総和の最大値 ナップサック問題ではこの形がベースになることが多いので、覚えよう。 行動としては取る取らないの2択があるので、それを実装する。 ナップサック問題をDPで解くやり方は、多数解説されているので、読んで覚えよう。 int N, W, w[101], v[101]…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F01%2F08%2F230756&quot; title=&quot;Knapsack 1 [Educational DP Contest / DP まとめコンテスト D] - はまやんはまやんはまやん&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-01-08 23:07:56</published>
  <title>Knapsack 1 [Educational DP Contest / DP まとめコンテスト D]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2019/01/08/230756</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
