結果
| 問題 | No.3197 Frequency Counter |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-07-11 21:35:25 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 254 ms / 2,000 ms |
| + 663µs | |
| コード長 | 330 bytes |
| 記録 | |
| コンパイル時間 | 237 ms |
| コンパイル使用メモリ | 95,988 KB |
| 実行使用メモリ | 153,720 KB |
| 最終ジャッジ日時 | 2026-07-13 03:15:07 |
| 合計ジャッジ時間 | 5,567 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
from collections import defaultdict
import sys
input = sys.stdin.readline
N = int(input())
A = list(map(int, input().split()))
Q = int(input())
XK = [list(map(int, input().split())) for _ in range(Q)]
D = defaultdict(int)
for a in A:
D[a] += 1
for x, k in XK:
if D[x]>=k:
print("Yes")
else:
print("No")