<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>noshi91</author_name>
  <author_url>https://blog.hatena.ne.jp/noshi91/</author_url>
  <blog_title>noshi91のメモ</blog_title>
  <blog_url>https://noshi91.hatenablog.com/</blog_url>
  <categories>
    <anon>アルゴリズム</anon>
    <anon>データ構造</anon>
  </categories>
  <description>概要 Convex Hull Trick で最小値取得クエリの が整数の時、アルゴリズム内で直線が不要かどうかチェックする部分を簡単に記述することが出来る。 特に、傾きと切片を掛けることでオーバーフローする問題を発生させない。 本文 Convex Hull Trick で、最小値取得クエリの の値の全てが整数とします。 簡単な下処理により、直線の傾きは distinct と仮定してよいです。 本の直線 があり、 とします。 ここで、 が不要かどうか判定することを考えます。 本の直線が下図のような位置関係にあるとしましょう。 座標軸の目盛りは整数の座標を表しています。 Convex Hull の…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnoshi91.hatenablog.com%2Fentry%2F2021%2F03%2F23%2F200810&quot; title=&quot;クエリが整数の Convex Hull Trick の 凸 判定 - noshi91のメモ&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/noshi91/20210323/20210323190912.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-03-23 20:08:10</published>
  <title>クエリが整数の Convex Hull Trick の 凸 判定</title>
  <type>rich</type>
  <url>https://noshi91.hatenablog.com/entry/2021/03/23/200810</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
