結果
| 問題 |
No.2777 Wild Flush
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-07 23:24:12 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 116 ms / 2,000 ms |
| コード長 | 248 bytes |
| コンパイル時間 | 1,555 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 99,712 KB |
| 最終ジャッジ日時 | 2024-12-26 10:35:35 |
| 合計ジャッジ時間 | 4,657 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 24 |
ソースコード
n,k=map(int,input().split())
L=list(map(int,input().split()))
from collections import defaultdict
d=defaultdict(int)
for e in L:
d[e]+=1
Max=0
for key,v in d.items():
if key!=0:
Max=max(Max,v)
if k<=Max+d[0]:
print("Yes")
else:
print("No")