<?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>dp</anon>
  </categories>
  <description>問題 問題概要 i番目の木はA[i]の実が実る. 時刻1で隣の木にいどうすることができる. 移動しなくてもよい. このような条件ですべての実を回収するのにかかる時間の最小値を求める. 解法 区間dpで解けるみたい. 今回の問題を考えるにあたって重要な考察は, i番目の実を回収する時刻はその実を最後に通過するときでよいということである. 実が消えるわけでないので, 最後に訪問するときに回収すれば十分である. このように実を回収するのを最後の訪問時と決めて考えると, 実を回収してない区間が, 連続間であらわすことができるようになる. dp[l][r][isright] := isright = 0…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmmxsrup.hatenablog.com%2Fentry%2F2017%2F02%2F15%2F134755&quot; title=&quot;yukicoder No.484 収穫 - 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>https://cdn-ak.f.st-hatena.com/images/fotolife/m/mmxsrup/20170215/20170215134532.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-02-15 13:47:55</published>
  <title>yukicoder No.484 収穫</title>
  <type>rich</type>
  <url>https://mmxsrup.hatenablog.com/entry/2017/02/15/134755</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
