<?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>AtCoder</anon>
    <anon>NoviSteps5Q</anon>
    <anon>茶色diff</anon>
    <anon>連想配列(setやmap)</anon>
    <anon>多重for文</anon>
    <anon>最頻値に関する問題</anon>
    <anon>文字列</anon>
    <anon>易しい文字列の問題</anon>
    <anon>旧ABC</anon>
  </categories>
  <description>制約が小さいので for 文だけでも解けるし、map などを使うともっと楽になる。 問題へのリンク 問題概要 個の文字列 が与えられる。 登場回数の最も多い文字列を答えよ（タイがある場合はどれを答えても良い）。 制約 考えたこと 次の連想配列を用いて解いた map&lt;string, int&gt;型変数nums` nums[str]：文字列 str が何個あるか コード #include &lt;bits/stdc++.h&gt; using namespace std; int main() { int N; string S; cin &gt;&gt; N; // 連想配列 num map&lt;string, int&gt; nu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2024%2F11%2F08%2F024549&quot; title=&quot;AtCoder ABC 008 B - 投票 (5Q, 試験管茶色) - けんちょんの競プロ精進記録&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/1730992592391452</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-11-08 02:45:49</published>
  <title>AtCoder ABC 008 B - 投票 (5Q, 試験管茶色)</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2024/11/08/024549</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
