結果

問題 No.2777 Wild Flush
ユーザー いまり💣🍠
提出日時 2024-06-07 21:58:38
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 266 bytes
コンパイル時間 245 ms
コンパイル使用メモリ 82,284 KB
実行使用メモリ 147,456 KB
最終ジャッジ日時 2024-12-26 07:57:46
合計ジャッジ時間 50,706 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 8 TLE * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

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


wild_card_num = A.count(0)
num_list = []
for i in range(1, N + 1):
    num_list.append(A.count(i))

max_num = max(num_list)

if max_num + wild_card_num >= K:
    print('Yes')
else:
    print('No')
0