結果
| 問題 |
No.2777 Wild Flush
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-07 23:20:51 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 244 bytes |
| コンパイル時間 | 543 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 99,584 KB |
| 最終ジャッジ日時 | 2024-12-26 10:27:48 |
| 合計ジャッジ時間 | 4,431 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 3 |
| other | AC * 21 WA * 3 |
ソースコード
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 k,v in d.items():
if k!=0:
Max=max(Max,v)
if k<=Max+d[0]:
print("Yes")
else:
print("No")