<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hamayanhamayan</author_name>
  <author_url>https://blog.hatena.ne.jp/hamayanhamayan/</author_url>
  <blog_title>はまやんはまやんはまやん</blog_title>
  <blog_url>https://blog.hamayanhamayan.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>https://yukicoder.me/problems/no/742 解法 https://yukicoder.me/submissions/289941ある猫についてiからM[i]へ移動するときにすれ違う猫の条件は [0,i)にいる猫で到着先が[M[i], N) または [i+1,N)にいる猫で到着先が[0,M[i]] である。 そのため、長方形区間総和を求めることができれば、答えが求まる。 いろいろ方法がある「WaveletMatrix」「2Dセグメントツリー」「BITを使ってもできそう」 自分の実装では2Dセグメントツリーを使った。 この数え方だと猫aと猫bがすれ違うのを(a,b)と…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2018%2F10%2F06%2F013625&quot; title=&quot;にゃんにゃんにゃん　猫の挨拶 [yukicoder No.742] - はまやんはまやんはまやん&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>2018-10-06 01:36:25</published>
  <title>にゃんにゃんにゃん　猫の挨拶 [yukicoder No.742]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2018/10/06/013625</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
