<?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/921 解説 https://yukicoder.me/submissions/396568 同じ大きさの場合は消えないので全部ずんだ餅にできる。 基本的には、「ず餅ず餅」みたいな感じにすればよさそう。 影響するのは2つ前くらいなので、ちょっと前くらいを見ればいい。 DP[i] := 最後にi番目のずんだ餅を食べたときにずんだ餅にできる最大個数 DP[i] = i番目の餅の個数 + max(DP[i - 2], DP[i - 3])が更新式になる。 A[i]=A[i-1]を満たすならば、DP[i] = i番目の餅の個数 + ma…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F11%2F09%2F180324_2&quot; title=&quot;ずんだアロー [yukicoder 921] - はまやんはまやんはまやん&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-11-09 18:03:24</published>
  <title>ずんだアロー [yukicoder 921]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2019/11/09/180324_2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
