結果

問題 No.2777 Wild Flush
ユーザー shimon
提出日時 2024-06-09 20:47:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 103 ms / 2,000 ms
コード長 238 bytes
コンパイル時間 401 ms
コンパイル使用メモリ 82,280 KB
実行使用メモリ 99,052 KB
最終ジャッジ日時 2024-12-30 22:51:32
合計ジャッジ時間 3,359 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
n, k = map(int, input().split())
A = list(map(int, input().split()))
c = Counter(A)
zero = c[0]
res = zero
c[0] = 0
res = max(res, zero + max(c.values()))
if res >= k:
    print('Yes')
else:
    print('No')
0