結果
| 問題 |
No.3197 Frequency Counter
|
| コンテスト | |
| ユーザー |
eve__fuyuki
|
| 提出日時 | 2025-07-12 19:50:17 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 351 ms / 2,000 ms |
| コード長 | 369 bytes |
| コンパイル時間 | 2,092 ms |
| コンパイル使用メモリ | 197,728 KB |
| 実行使用メモリ | 17,536 KB |
| 最終ジャッジ日時 | 2025-07-12 19:50:24 |
| 合計ジャッジ時間 | 5,927 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
void fast_io() {
ios::sync_with_stdio(false);
std::cin.tie(nullptr);
}
int main() {
fast_io();
int n;
cin >> n;
map<int, int> cnt;
for (int i = 0; i < n; i++) {
int a;
cin >> a;
cnt[a]++;
}
int q;
cin >> q;
for (; q--;) {
int x, k;
cin >> x >> k;
cout << (cnt[x] >= k ? "Yes" : "No") << "\n";
}
}
eve__fuyuki