<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>drken1215</author_name>
  <author_url>https://blog.hatena.ne.jp/drken1215/</author_url>
  <blog_title>けんちょんの競プロ精進記録</blog_title>
  <blog_url>https://drken1215.hatenablog.com/</blog_url>
  <categories>
    <anon>そのまま覚えたい易しい教育的典型問題</anon>
    <anon>種類数</anon>
    <anon>連想配列(setやmap)</anon>
    <anon>数列</anon>
    <anon>NoviSteps6Q</anon>
    <anon>AtCoder</anon>
    <anon>AtCoder200点</anon>
    <anon>ABC-B</anon>
    <anon>灰色diff</anon>
    <anon>配列</anon>
    <anon>易しい配列の問題</anon>
    <anon>考察：ソート</anon>
    <anon>【問題集】ソート</anon>
  </categories>
  <description>いろんな方法が考えられる超典型問題 問題へのリンク 問題概要 長さ の整数数列 が与えられる。 この数列に含まれる整数の種類数を答えよ。 制約 解法 set 型の知識があれば、それを用いるのが最も楽だと思う (他の方法は公式解説を参照)。C++ の set 型を用いると、 値 を集合 に挿入する処理：S.insert(x) 集合 に含まれる整数の個数を求める処理：S.size() と書ける。すでに が に含まれているときは、 は変化しない。 よって、次のように問題が解ける。 を順に集合 を挿入する 集合 に含まれる整数の個数を答える コード #include &lt;bits/stdc++.h&gt; u…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2024%2F07%2F05%2F011538&quot; title=&quot;AtCoder ABC 240 B - Count Distinct Integers (6Q, 灰色, 200 点) - けんちょんの競プロ精進記録&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>https://cdn.user.blog.st-hatena.com/default_entry_og_image/80936665/1687765056723440</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-07-05 01:15:38</published>
  <title>AtCoder ABC 240 B - Count Distinct Integers (6Q, 灰色, 200 点)</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2024/07/05/011538</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
