<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ngtkana</author_name>
  <author_url>https://blog.hatena.ne.jp/ngtkana/</author_url>
  <blog_title>ブログ名</blog_title>
  <blog_url>https://blog.ngtkana.com/</blog_url>
  <categories>
  </categories>
  <description>問題 ARC 164 E - Segment-Tree Optimization 解法 mark がひとつもないとき（つまりすべてのクエリが全体クエリのとき）は特別で、答えは $(0, q)$ となりますが、そうでないときを考えましょう。 区間 $[l, r[$ に対するクエリが来るたびに、$[l - 1, l + 1[$ を含む節点全てに mark し、また $[r - 1, r + 1[$ を含む節点全てにも mark することにします。このとき mark の深さの最大値を $d$、深さ $d$ の mark の個数の最小値を $c$ とおくと、答えは $(1 + d, 2c)$ の最小値…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.ngtkana.com%2Fentry%2F2024%2F11%2F29%2F231518&quot; title=&quot;ARC 164 E - Segment-Tree Optimization の別解法（Knuth–Yao speedup） - ブログ名&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>https://cdn-ak.f.st-hatena.com/images/fotolife/n/ngtkana/20241129/20241129180221.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-11-29 23:15:18</published>
  <title>ARC 164 E - Segment-Tree Optimization の別解法（Knuth–Yao speedup）</title>
  <type>rich</type>
  <url>https://blog.ngtkana.com/entry/2024/11/29/231518</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
