結果
| 問題 |
No.3197 Frequency Counter
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-07-11 22:55:57 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 392 bytes |
| コンパイル時間 | 377 ms |
| コンパイル使用メモリ | 82,848 KB |
| 実行使用メモリ | 157,036 KB |
| 最終ジャッジ日時 | 2025-07-11 22:56:03 |
| 合計ジャッジ時間 | 5,914 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 RE * 6 |
ソースコード
N = int(input())
A = list(map(int, input().split()))
Q = int(input())
q = [0] * N
for i in range(Q):
q[i] = list(map(int, input().split()))
from collections import Counter
c = Counter(A)
ans = []
for i in range(Q):
x, k = q[i]
if x not in c:
ans.append("No")
elif c[x] >= k:
ans.append("Yes")
else:
ans.append("No")
for x in ans:
print(x)