<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inamori</author_name>
  <author_url>https://blog.hatena.ne.jp/inamori/</author_url>
  <blog_title>inamori’s diary</blog_title>
  <blog_url>https://inamori.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>https://atcoder.jp/contests/abc405/tasks/abc405_fエッジの端点をxとyとすると、エッジを平面上の点と考えるます。そうすると、それと交差するエッジの端点(x1, y1)は、1 ≤ x1 &lt; xかつx &lt; y1 &lt; y、または、x &lt; x1 &lt; yかつy &lt; y1 ≤ N*2を満たせばよいです。すなわち指定した2つの矩形内の点を数えればよいです。 これを高速に求めるには2次元のSegment Treeを作ればよいです。すなわち、x方向にSegment Treeを作って、その要素をy方向のSegment Treeにします。しかし、これではメモリが食いす…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F2025%2F05%2F15%2F164436&quot; title=&quot;AtCoder Beginner Contest 405 F - inamori’s diary&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>2025-05-15 16:44:36</published>
  <title>AtCoder Beginner Contest 405 F</title>
  <type>rich</type>
  <url>https://inamori.hateblo.jp/entry/2025/05/15/164436</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
