<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hamayanhamayan</author_name>
  <author_url>https://blog.hatena.ne.jp/hamayanhamayan/</author_url>
  <blog_title>はまやんはまやんはまやん</blog_title>
  <blog_url>https://blog.hamayanhamayan.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>https://community.topcoder.com/stat?c=problem_statement&amp;pm=15740 前提知識 Suffix Array/LCP 解説 テクニックとして、ある文字列の任意の2区間の大小関係は前計算しておけば、O(1)で判定することができる。 Suffix Array/LCPでそれが実現できる。 これを持っていないと以下の方針で解くのは難しい。 簡単な別解を補足で載せますが、ここは本番回答。 Nを文字列長としておく。 Kで場合分けして解く。 K=1の時はf(X)を計算可能なので計算しよう。 全部でO(N2)で計算できる。 2≦Kの場合は、性質を見抜く必…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2020%2F02%2F22%2F095040&quot; title=&quot;SubstringQueries [Single Round Match 779 Round 1 - Division I, Level Two Med] - はまやんはまやんはまやん&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>2020-02-22 09:50:40</published>
  <title>SubstringQueries [Single Round Match 779 Round 1 - Division I, Level Two Med]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2020/02/22/095040</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
