<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yosupo</author_name>
  <author_url>https://blog.hatena.ne.jp/yosupo/</author_url>
  <blog_title>よすぽの日記</blog_title>
  <blog_url>https://yosupo.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>与えられたデータの文字列についてTrie木を構築しますそのTrie木をEuler-TourしてBITを構築します Trie木の頂点ごとに、BITで対応する範囲[l, r]がどこなのかも一緒に計算しておきますその後、文字列ごとに、もう一度Trie木を潜ってその文字列の最後の頂点がBITのどこに対応するかを計算しますクエリ1は、その文字列の最後の頂点に対応するBITの値を+xするクエリ2は、その文字列の最後の頂点に対応するBITの範囲のsumを取る(対応する頂点がない場合は0) おまけ クエリ3として、文字列Sが与えられるから全部のデータについて(Sとの共通しているprefixの長さ)*値 の s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyosupo.hatenablog.com%2Fentry%2F2015%2F03%2F31%2F222811&quot; title=&quot;今日の典型データ構造②(解答編) - よすぽの日記&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>2015-03-31 22:28:11</published>
  <title>今日の典型データ構造②(解答編)</title>
  <type>rich</type>
  <url>https://yosupo.hatenablog.com/entry/2015/03/31/222811</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
