結果

問題 No.2777 Wild Flush
ユーザー AwashAmityOakAwashAmityOak
提出日時 2024-06-07 21:51:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 107 ms / 2,000 ms
コード長 222 bytes
コンパイル時間 356 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 102,272 KB
最終ジャッジ日時 2024-12-26 07:46:33
合計ジャッジ時間 3,752 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

N, K = map(int, input().split())
*A, = map(int, input().split())

counter = Counter(A)
zeros = counter.get(0, 0)
counter[0] = 0
print("Yes" if K <= max(counter.values()) + zeros else "No")
0