結果
問題 |
No.3197 Frequency Counter
|
ユーザー |
|
提出日時 | 2025-07-11 21:42:18 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 744 ms / 2,000 ms |
コード長 | 413 bytes |
コンパイル時間 | 3,231 ms |
コンパイル使用メモリ | 280,468 KB |
実行使用メモリ | 17,536 KB |
最終ジャッジ日時 | 2025-07-11 21:42:28 |
合計ジャッジ時間 | 9,551 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
ソースコード
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; int main(){ int n; cin >> n; map<int, int> cnt; rep(i, n) { int a; cin >> a; cnt[a]++; } int q; cin >> q; rep(qi, q) { int x, k; cin >> x >> k; if (cnt[x] >= k) puts("Yes"); else puts("No"); } return 0; }