結果
問題 |
No.2777 Wild Flush
|
ユーザー |
|
提出日時 | 2024-06-07 22:53:51 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 226 bytes |
コンパイル時間 | 350 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 99,456 KB |
最終ジャッジ日時 | 2024-12-26 09:25:28 |
合計ジャッジ時間 | 3,865 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 3 |
other | AC * 21 WA * 3 |
ソースコード
from collections import defaultdict n,k=map(int,input().split()) L=list(map(int,input().split())) d=defaultdict(int) for e in L: d[e]+=1 M=0 for k,v in d.items(): if k!=0: M=max(M,v) print("Yes" if k<=(d[0]+M) else "No")