<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>anta1</author_name>
  <author_url>https://blog.hatena.ne.jp/anta1/</author_url>
  <blog_title>antaの競技プログラミング練習日記</blog_title>
  <blog_url>https://anta1.hatenadiary.org/</blog_url>
  <categories>
    <anon>SRM</anon>
    <anon>文字列</anon>
    <anon>辞書順最小</anon>
    <anon>BFS</anon>
  </categories>
  <description>問題 Editorial 問題 単語列wordsが与えられる。それらを全て含む、長さ最小の文字列の辞書順最小を求めよ 1 1 解答 まず、他の文字列に含まれている関係にある文字列たちを除去する。 この除去された文字列は他の文字列に含まれるので、考えなくても問題の制約は満たすことに注意。 こうすると、最後に使った単語と次に使う単語だけから、その連結の最小の長さが求められる。 前の前の単語の前まで「めり込む」ことは無いことに注意すると(それがもしあれば、次の単語は前の単語を含んでいることになってしまう)、 前の単語への「めり込み」ができるだけ大きい位置でやればいいことがわかる。これは純粋に全探索す…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanta1.hatenadiary.org%2Fentry%2F20130417%2F1366126065&quot; title=&quot;SRM 302 DIV1 Hard JoinedString - antaの競技プログラミング練習日記&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>2013-04-17 00:27:45</published>
  <title>SRM 302 DIV1 Hard JoinedString</title>
  <type>rich</type>
  <url>https://anta1.hatenadiary.org/entry/20130417/1366126065</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
