結果

問題 No.3197 Frequency Counter
コンテスト
ユーザー dp_ijk
提出日時 2025-07-11 21:26:43
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 450 ms / 2,000 ms
+ 179µs
コード長 231 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 231 ms
コンパイル使用メモリ 95,980 KB
実行使用メモリ 153,540 KB
最終ジャッジ日時 2026-07-13 03:05:34
合計ジャッジ時間 6,972 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from collections import Counter

N = int(input())
A = list(map(int, input().split()))
C = Counter(A)

for _ in range(int(input())):
   x, k = map(int, input().split())
   if C[x] >= k:
      print("Yes")
   else:
      print("No")
0