<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mayokoex</author_name>
  <author_url>https://blog.hatena.ne.jp/mayokoex/</author_url>
  <blog_title>mayoko’s diary</blog_title>
  <blog_url>https://mayokoex.hatenablog.com/</blog_url>
  <categories>
    <anon>yukicoder</anon>
  </categories>
  <description>問題 No.288 貯金箱の仕事 - yukicoder 解法 まず, ゆきうさぎさんはまずお金を全部貯金箱さんに預けて, そのあと貯金箱さんがなるべく少ない硬貨の枚数でゆきうさぎさんに返せば良い, ということがわかります。つまり, この問題は本質的には「お金をなるべく少ない硬貨で作ろう！」といういつもの DP です。ただ, 今回は作るべきお金が非常に高額なので単純に dp[n][money] = (n 番目まで使って money 円を作る最小の硬貨数) とすることは出来ません。ただ, 実は money が A[N-1] * A[N-1] 円以上であれば, 必ず A[N-1] を使うのが得, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2015%2F10%2F11%2F121444&quot; title=&quot;yukicoder No.288 貯金箱の仕事 - mayoko’s diary&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>2015-10-11 12:14:44</published>
  <title>yukicoder No.288 貯金箱の仕事</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2015/10/11/121444</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
