結果
| 問題 |
No.2777 Wild Flush
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-07 22:45:09 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 228 bytes |
| コンパイル時間 | 448 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 96,128 KB |
| 最終ジャッジ日時 | 2024-12-26 09:07:17 |
| 合計ジャッジ時間 | 4,174 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 3 |
| other | AC * 21 WA * 3 |
ソースコード
n,k=map(int,input().split())
L=list(map(int,input().split()))
d=dict()
for e in L:
if e in d:
d[e]+=1
else:
d[e]=1
M=0
for k,v in d.items():
if k!=0:
M=max(M,v)
d0=0
if 0 in d:
d0=d[0]
print("Yes" if k<=d0+M else "No")