<?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>http://www.adventar.org/calendars/850の3日目の記事です。 微妙に役に立ちそうで役に立たないSegTreeテクニック SegTreeで1点を更新するクエリを処理することを考えます。 これはおおむね SegTreeの対応する位置の葉を更新する そこから登っていき, ノードを更新する(そのノードの左右の子の情報をmergeしたものを自分の情報にする) という2Stepからなります。 たとえばRMQならば上のStepはvalue = x, 下のStepはvalue = min(left-&gt;value, right-&gt;value)となります。 大体のSegTreeに…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyosupo.hatenablog.com%2Fentry%2F2015%2F12%2F02%2F235855&quot; title=&quot;ちょっと重いSegTree - よすぽの日記&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://cdn-ak.f.st-hatena.com/images/fotolife/y/yosupo/20151202/20151202221248.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-12-02 23:58:55</published>
  <title>ちょっと重いSegTree</title>
  <type>rich</type>
  <url>https://yosupo.hatenablog.com/entry/2015/12/02/235855</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
