<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>minus9d</author_name>
  <author_url>https://blog.hatena.ne.jp/minus9d/</author_url>
  <blog_title>minus9d's diary</blog_title>
  <blog_url>https://minus9d.hatenablog.com/</blog_url>
  <categories>
    <anon>programming contest</anon>
    <anon>C++</anon>
  </categories>
  <description>競技プログラミングでC++のmultisetをたまに使うことがありますが、毎回使い方を忘れているのでメモしておきます。 (2021-09-05追記: 計算量に誤りがあったので修正) multisetとは multisetは、集合を扱うデータ構造です。setと異なり、同じ値の要素を複数持つことができます。#include &lt;set&gt;すれば使えます。さっそく例を示します。 #include &lt;iostream&gt; #include &lt;set&gt; void print_multiset(std::multiset&lt;int&gt;&amp; ms) { for (auto val: ms) { std::cout &lt;&lt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fminus9d.hatenablog.com%2Fentry%2F2019%2F07%2F25%2F212453&quot; title=&quot;C++のmultisetの使い方 - minus9d&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>2019-07-25 21:24:53</published>
  <title>C++のmultisetの使い方</title>
  <type>rich</type>
  <url>https://minus9d.hatenablog.com/entry/2019/07/25/212453</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
