<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>TobiasGSmollett</author_name>
  <author_url>https://blog.hatena.ne.jp/TobiasGSmollett/</author_url>
  <blog_title>tobiasの日記</blog_title>
  <blog_url>https://tobiasgsmollett.hatenadiary.org/</blog_url>
  <categories>
    <anon>AOJ</anon>
    <anon>幾何</anon>
    <anon>データ構造</anon>
  </categories>
  <description>問題文 http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=CGL_6_A 書籍「プログラミングコンテスト攻略のためのアルゴリズムとデータ構造」で紹介されいるが、セグ木を使って効率よく解けると書いてあったので実装。 x座標を座標圧縮すると平面走査で使っている二分探索木の部分にセグ木を使えてO(n log n)になる……ということだと思う。 #include&lt;iostream&gt; #include&lt;vector&gt; #include&lt;algorithm&gt; #include&lt;map&gt; #define all(c) (c).begin(),(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftobiasgsmollett.hatenadiary.org%2Fentry%2F20150217%2F1424160997&quot; title=&quot;CGL_6/A: 線分交差 - tobiasの日記&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-02-17 17:16:37</published>
  <title>CGL_6/A: 線分交差</title>
  <type>rich</type>
  <url>https://tobiasgsmollett.hatenadiary.org/entry/20150217/1424160997</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
