<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Area1</author_name>
  <author_url>https://blog.hatena.ne.jp/Area1/</author_url>
  <blog_title>Area1のif(memo[i][j])</blog_title>
  <blog_url>https://area.hateblo.jp/</blog_url>
  <categories>
    <anon>POJ</anon>
    <anon>DP</anon>
  </categories>
  <description>問題 複数種類の硬貨があり、その重さと価値が与えられる。重みの和がちょうどE-Fになるように硬貨を取り出したときの価値の和を最小化せよ。硬貨は各種類とも無尽蔵にあるとしていい。 やりかた dp[i]:=（重みの和がiであるときの価値の最小値）でDP。硬貨jの重みをw[j]、価値をv[j]とするとdp[i + w[j]] = min(dp[i + w[j]], dp[i] + v[j])で更新できる。以下ソース。 int dp[10002]; int v[501], w[501]; int main(int argc, char **argv){ int T; cin &gt;&gt; T; while(T…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Farea.hateblo.jp%2Fentry%2F2017%2F01%2F07%2F141652&quot; title=&quot;POJ 1384 Piggy-Bank - Area1のif(memo[i][j])&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>2017-01-07 14:16:52</published>
  <title>POJ 1384 Piggy-Bank</title>
  <type>rich</type>
  <url>https://area.hateblo.jp/entry/2017/01/07/141652</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
