結果

問題 No.3197 Frequency Counter
ユーザー titia
提出日時 2025-07-11 22:45:50
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 1,386 ms / 2,000 ms
コード長 237 bytes
コンパイル時間 400 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 38,100 KB
最終ジャッジ日時 2025-07-11 22:46:04
合計ジャッジ時間 12,573 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

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

C=Counter(A)

Q=int(input())


for tests in range(Q):
    x,k=map(int,input().split())

    if C[x]>=k:
        print("Yes")
    else:
        print("No")
0