結果
| 問題 | No.3197 Frequency Counter |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-07-11 21:35:25 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 253 ms / 2,000 ms |
| + 73µs | |
| コード長 | 330 bytes |
| 記録 | |
| コンパイル時間 | 102 ms |
| コンパイル使用メモリ | 64,384 KB |
| 実行使用メモリ | 124,916 KB |
| 最終ジャッジ日時 | 2026-11-24 16:21:33 |
| 合計ジャッジ時間 | 5,238 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge6_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
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")