<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>drken1215</author_name>
  <author_url>https://blog.hatena.ne.jp/drken1215/</author_url>
  <blog_title>けんちょんの競プロ精進記録</blog_title>
  <blog_url>https://drken1215.hatenablog.com/</blog_url>
  <categories>
    <anon>Codeforces</anon>
    <anon>DP</anon>
    <anon>シーケンシャルDP</anon>
    <anon>最適化の考察：変形しても悪化しない</anon>
    <anon>最適化の考察：探索候補を絞る</anon>
    <anon>数列</anon>
    <anon>EducationalCodeforces</anon>
    <anon>CodeforcesR1700</anon>
    <anon>隣接2要素に制約や目的関数のある問題</anon>
  </categories>
  <description>いかにも Greedy にできなさそうなので DP！！！ 問題へのリンク 問題概要 長さ の整数数列 が与えられる。今、数列の各項の値を整数分だけ増加させるなどして、数列のどの隣り合う二項も値が異なるようにしたい。 項目を 1 増加させるのに要するコストは で与えられる。目的を達成するための最小コストを求めよ。 制約 考えたこと で解ければ OK。こういうの、まずは Greedy に...とつい考えてしまう。しかし (2, 2, 3, 3) と並んでるところを、(3, 2, 4, 3) とか (2, 4, 3, 4) とかなんか色々なパターンが考えられて、やばそう そこで DP できないか考え…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2019%2F09%2F20%2F120500&quot; title=&quot;Educational Codeforces Round 73 D. Make The Fence Great Again (R1700) - けんちょんの競プロ精進記録&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://chart.apis.google.com/chart?cht=tx&amp;chl=%20N</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-09-20 12:05:00</published>
  <title>Educational Codeforces Round 73 D. Make The Fence Great Again (R1700)</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2019/09/20/120500</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
