<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>peroon</author_name>
  <author_url>https://blog.hatena.ne.jp/peroon/</author_url>
  <blog_title>perogram</blog_title>
  <blog_url>https://perogram.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>#ifdef LOCAL #define _GLIBCXX_DEBUG #define __clock__ #else #pragma GCC optimize(&quot;Ofast&quot;) #endif 私のコードは上記を定義している。基本的に便利だが、困ることもある 以前、_GLIBCXX_DEBUGが有効だとpriority_queueが遅いことにハマったことがある 今回はソート済みの配列Aをlower_boundするときも同様に遅くなることに出くわした 具体的にはN=100000ほどのデータで2秒では終わらなくなる _GLIBCXX_DEBUG使ってるとlower_boundも遅くなる。下記を見る…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fperogram.hateblo.jp%2Fentry%2F2020%2F12%2F30%2F025324&quot; title=&quot;priority_queue lower_bound 遅い _GLIBCXX_DEBUG - perogram&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>2020-12-30 02:53:24</published>
  <title>priority_queue lower_bound 遅い _GLIBCXX_DEBUG</title>
  <type>rich</type>
  <url>https://perogram.hateblo.jp/entry/2020/12/30/025324</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
