結果

問題 No.3197 Frequency Counter
ユーザー tanaka255
提出日時 2025-07-13 13:42:21
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 227 ms / 2,000 ms
コード長 292 bytes
コンパイル時間 3,873 ms
コンパイル使用メモリ 279,168 KB
実行使用メモリ 15,292 KB
最終ジャッジ日時 2025-07-13 13:42:29
合計ジャッジ時間 7,497 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
signed main(){
  cin.tie(0)->sync_with_stdio(0);
  int N;cin>>N;
  unordered_map<int,int>mp;
  for(int i=0;i<N;++i){
    int x;cin>>x;
    ++mp[x];
  }
  int Q;cin>>Q;
  while(Q--){
    int x,k;cin>>x>>k;
    cout<<(k<=mp[x]?"Yes\n":"No\n");
  }
}
0