結果
| 問題 |
No.2777 Wild Flush
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-07 21:48:09 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 248 bytes |
| コンパイル時間 | 334 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 98,688 KB |
| 最終ジャッジ日時 | 2024-12-26 07:42:00 |
| 合計ジャッジ時間 | 3,767 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 WA * 1 |
| other | AC * 22 WA * 2 |
ソースコード
from collections import defaultdict
N,K=list(map(int,input().split()))
A=list(map(int,input().split()))
d=defaultdict(int)
for a in A:d[a]+=1
# print(d)
for _,v in d.items():
if v==K or v+1==K:
print("Yes")
exit(0)
print("No")