<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>geam1113</author_name>
  <author_url>https://blog.hatena.ne.jp/geam1113/</author_url>
  <blog_title>geam1113’s diary</blog_title>
  <blog_url>https://geam1113.hatenablog.com/</blog_url>
  <categories>
    <anon>ABC</anon>
    <anon>少ない状態数</anon>
  </categories>
  <description>解説を見て解きました。 問題文の条件は、同じ色を連続して全て取ってから次の色を取るということを示します。 入力例1なら、32123の順で並んでいるボールを12233の順で取ります。同じ数字内での取り方に指定はありません。 ある色のボールを全て取ることを考えます。 色の中で、最も小さい座標を、大きい座標をとします。 どのような順番でボールを取ったとしても、必ず⇔間の移動が発生します。 そのため、この移動の際に全てのボールを回収することにしても問題ありません。 このように考えると、ボールの取り方は以下の2パターンしかありません。 から開始して、最後にのボールをとる 上の逆パターン 次の色のボールを…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgeam1113.hatenablog.com%2Fentry%2F2021%2F09%2F03%2F183500&quot; title=&quot;ABC197E Traveler - geam1113’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>2021-09-03 18:35:00</published>
  <title>ABC197E Traveler</title>
  <type>rich</type>
  <url>https://geam1113.hatenablog.com/entry/2021/09/03/183500</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
