<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>noimin</author_name>
  <author_url>https://blog.hatena.ne.jp/noimin/</author_url>
  <blog_title>NoiminのNoise</blog_title>
  <blog_url>https://noimin.hatenablog.com/</blog_url>
  <categories>
    <anon>競技プログラミング (問題解説)</anon>
  </categories>
  <description>問題概要 整数 長さは 上記2条件を満たす文字列中で，同じ文字のみからなる部分文字列のうち最長のものの長さが最も短い． 上記3条件を満たす文字列中で辞書順最小である． 解法概要 &quot;同じ文字が続いても良い数&quot; ABB…B(Bがk個) ABB…B ABB…B…のprefix AA…A(Aがk個)BAA…ABAA…AB…のpostfix をくっつける．1.と2.の境目は二分探索で求める． 実装上の学び 最初はstd::stringで文字列を結合したり出力したりするのをやっていたが，解説の解法を実装してもTLE． ACした人のソースコードを参考にchar型の配列で文字列を扱うようにしたところTLEが取…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnoimin.hatenablog.com%2Fentry%2F2018%2F01%2F21%2F160437&quot; title=&quot;AtCoder Grand Contest 020 D - Min Max Repetition - NoiminのNoise&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>http://chart.apis.google.com/chart?cht=tx&amp;amp;chl=%7B%20%5Cdisplaystyle%20A%2CB%7D</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-01-21 16:04:37</published>
  <title>AtCoder Grand Contest 020 D - Min Max Repetition</title>
  <type>rich</type>
  <url>https://noimin.hatenablog.com/entry/2018/01/21/160437</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
