結果

問題 No.2777 Wild Flush
ユーザー hato336
提出日時 2024-06-07 21:32:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 191 ms / 2,000 ms
コード長 380 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 105,088 KB
最終ジャッジ日時 2024-12-26 07:10:43
合計ジャッジ時間 6,192 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
#sys.set_int_max_str_digits(0)
#input = sys.stdin.readline

#
#alist = []

n,k = map(int,input().split())
a = list(map(int,input().split()))
c = [0 for i in range(n+1)]
for i in a:
    c[i] += 1
ans = max(c[1:])
print('Yes' if ans + c[0] >= k else 'No')
0