結果

問題 No.3197 Frequency Counter
ユーザー れいん
提出日時 2025-07-18 17:51:03
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 774 ms / 2,000 ms
コード長 430 bytes
コンパイル時間 3,149 ms
コンパイル使用メモリ 280,724 KB
実行使用メモリ 17,536 KB
最終ジャッジ日時 2025-07-18 17:51:12
合計ジャッジ時間 9,357 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main()
{
    int N;
    cin >> N;
    map<int, int> mp;
    for (int i = 0; i < N; i++)
    {
        int A;
        cin >> A;
        mp[A]++;
    }
    int Q;
    cin >> Q;
    while (Q--)
    {
        int x, k;
        cin >> x >> k;
        if (mp[x] >= k)
        {
            cout << "Yes\n";
        }
        else
        {
            cout << "No\n";
        }
    }
}
0