<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>JunKobayashi</author_name>
  <author_url>https://blog.hatena.ne.jp/JunKobayashi/</author_url>
  <blog_title>JunKobayashi's Diary</blog_title>
  <blog_url>https://junkobayashi.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>↓問題のページ↓ AtCoder Beginner Contest 241 D - Sequence Query アルゴリズムではなく、多重集合というデータ構造（C++ではstd::multisetを使うのが良い）の使い方を学ぶための一問と感じた。途轍もなく乱暴に説明すると、多重集合は要素の追加・探索・削除をそれぞれ要素数の対数時間で行うことができ、しかも重複を許したうえで常に規則的に並べた状態で保持してくれる（但しランダムアクセスはできない）ものである。この問題では合計\(2 \times 10^5\)回だけこれらの処理を行うため、多重集合を使用するのが適している。 ＜実装＞ 1)多重集合\…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjunkobayashi.hatenablog.com%2Fentry%2F2024%2F07%2F20%2F043957&quot; title=&quot;ABC241 D問題 - JunKobayashi&amp;#39;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>2024-07-20 04:39:57</published>
  <title>ABC241 D問題</title>
  <type>rich</type>
  <url>https://junkobayashi.hatenablog.com/entry/2024/07/20/043957</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
