<?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://yukicoder.me/problems/no/868 前提知識 戻すDP 解説 https://yukicoder.me/submissions/370474 戻すDPを知っている人は、適用するだけである。 まずは、普通にDPを作ろう。 dp[i][k] := 配列Aのi番目まで使って、総和がkである組み合わせ 戻すDPをするためにはtrue/falseでは行えないので、組み合わせにして解く。 漸化式を書くとdp[i+1][k] = dp[i][k] + dp[i][k-A[i]]である。 これで作るが、配列を後ろから埋めると節約できるタイプなので、 dp[k] := 総和…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F08%2F18%2F112505&quot; title=&quot;ハイパー部分和問題 [yukicoder 868]
 - はまやんはまやんはまやん&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-08-18 11:25:05</published>
  <title>ハイパー部分和問題 [yukicoder 868]
</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2019/08/18/112505</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
