結果

問題 No.2777 Wild Flush
ユーザー pluto77
提出日時 2024-06-14 10:35:34
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 184 bytes
コンパイル時間 420 ms
コンパイル使用メモリ 82,312 KB
実行使用メモリ 87,296 KB
最終ジャッジ日時 2024-06-14 10:35:39
合計ジャッジ時間 4,859 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 4 TLE * 1 -- * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

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