<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mayokoex</author_name>
  <author_url>https://blog.hatena.ne.jp/mayokoex/</author_url>
  <blog_title>mayoko’s diary</blog_title>
  <blog_url>https://mayokoex.hatenablog.com/</blog_url>
  <categories>
    <anon>TopCoder</anon>
  </categories>
  <description>問題 TopCoder Statistics - Problem Statementn 文字の文字列が与えられる。maxSwap 回以内の隣り合った文字の交換を許すとき, 「同じ文字が連続して p 個並んでいる」という性質を満たす最長の部分文字列の長さを求めよ。 解法 真ん中の文字を決めます。で, 左右から何文字くっつけてくるかで場合分けです。下のコードではさらに左からくっつけてくる文字でも場合分けしてますが, もっと賢く, 左から文字を持ってくるのと 右から文字を持ってくるのの距離を配列に入れてソートする, という解法のほうがオーダーもそんな変わらないし実装が超楽です。hamko さんがその…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F06%2F01%2F234244&quot; title=&quot;SRM 551 div1 easy: ColorfulChocolates - mayoko’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>2016-06-01 23:42:44</published>
  <title>SRM 551 div1 easy: ColorfulChocolates</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2016/06/01/234244</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
