<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mmxsrup</author_name>
  <author_url>https://blog.hatena.ne.jp/mmxsrup/</author_url>
  <blog_title>srupのメモ帳</blog_title>
  <blog_url>https://mmxsrup.hatenablog.com/</blog_url>
  <categories>
    <anon>yukicoder</anon>
    <anon>dp</anon>
    <anon>要復習</anon>
  </categories>
  <description>問題 問題概要 個数制限なしナップザック問題。 解法 dp[x] := ita[0]~ita[2]を使い、長さxの板を作るのに、必要な最小の板の枚数と置き、ループで回して埋めていった。 したのは、同じものを選ぶ時に、ループを回して、取れる数まで同じものを取るようにしてるので、遅い。 for (int x = 1; x &lt;= 30; ++x){ for (int y = 0; y &lt; 3; ++y){//使う板 for (int z = 1; z &lt;= 30; ++z){//同じ長さの板を何度も使うことはある if(1 &lt;= x - ita[y] * z &amp;&amp; x - ita[y] * z &lt;=…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmmxsrup.hatenablog.com%2Fentry%2F2016%2F09%2F07%2F142402&quot; title=&quot;yukicoder No.27 板の準備 - srupのメモ帳&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>2016-09-07 14:24:02</published>
  <title>yukicoder No.27 板の準備</title>
  <type>rich</type>
  <url>https://mmxsrup.hatenablog.com/entry/2016/09/07/142402</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
