<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tsukuno</author_name>
  <author_url>https://blog.hatena.ne.jp/tsukuno/</author_url>
  <blog_title>なんとなくな日々のコメント</blog_title>
  <blog_url>https://tsukuno.hatenadiary.org/</blog_url>
  <categories>
    <anon>NHC</anon>
    <anon>SRM</anon>
  </categories>
  <description>入力のコーナーケースは全部試すくらいの注意が必要。さすがに全部はムリなので、どれが考慮すべきなのか適切に見極めることが...。 250 文字列が与えられるので、隣接する文字のスワップを指定された回数だけして良いので、特定の文字ができるだけ連続するようにせよ、という問題。 基本的には一箇所に集める作業をする。集まる場所を決めれば、左右から近いものを優先的に移動させていくだけ。 本当は集める文字の左端と右端を決めると、中央の文字に集めるのが最適になるのを暗黙に使っている。ある位置に集めるのをやめて、隣の文字に集める場合、(集め終わった結果から逆算して)隣の文字より向こうのヤツは1個ずつ戻って、自分…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftsukuno.hatenadiary.org%2Fentry%2F20120805%2F1344106026&quot; title=&quot; 551.1 - なんとなくな日々のコメント&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>2012-08-05 03:47:06</published>
  <title> 551.1</title>
  <type>rich</type>
  <url>https://tsukuno.hatenadiary.org/entry/20120805/1344106026</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
