<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yebityon</author_name>
  <author_url>https://blog.hatena.ne.jp/yebityon/</author_url>
  <blog_title>予鈴</blog_title>
  <blog_url>https://yebityon.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>問題 個のボールが与えられる。ボールは、座標軸上に位置し、その色はである。 座標軸を移動しながらボールの色が広義単調増加となるように回収する時、移動するコストを最小化せよ。 atcoder.jp 考察 色ごとにDPしたくなるが、各色と次の色の間ですべての推移を試すのは容易ではない。これは実際に推移する辺を貼ってみると、辺の数が非常に大きくなることからわかる。そこで、同じ色のボールを回収する方法について試してみる。同じ色のボールを回収する始点と終点をうまく決めることができれば、推移の数を減らせるだろう。 となる同じ色のボールを考える とおく。また、をAからBまでの距離を表すものとする。 まずは始…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyebityon.hatenablog.com%2Fentry%2F2022%2F12%2F04%2F090908&quot; title=&quot;E - Traveler - 予鈴&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>2022-12-04 09:09:08</published>
  <title>E - Traveler</title>
  <type>rich</type>
  <url>https://yebityon.hatenablog.com/entry/2022/12/04/090908</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
