結果

問題 No.2777 Wild Flush
ユーザー ypww
提出日時 2024-06-07 21:37:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 189 ms
コンパイル使用メモリ 81,984 KB
実行使用メモリ 80,896 KB
最終ジャッジ日時 2024-12-26 07:20:51
合計ジャッジ時間 2,551 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

n, k = map(int, input().split())
a = list(map(int, input().split()))

cnt = [0] * 100010
for aa in a:
    cnt[aa] += 1

for i in range(1,100010):
    if cnt[i] + cnt[0] >= k:
        print('Yes')
        exit(0)
print('No')
0