結果
問題 |
No.2777 Wild Flush
|
ユーザー |
|
提出日時 | 2024-06-07 21:55:44 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 277 bytes |
コンパイル時間 | 530 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 106,752 KB |
最終ジャッジ日時 | 2024-12-26 07:52:59 |
合計ジャッジ時間 | 3,649 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
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) A.sort() for a in A:d[a]+=1 v=[] for _,x in d.items():v.append(x) v.sort() v.reverse() n=v[0] if len(v)>1:n+=v[1] if n>=K:print("Yes") else:print("No")