結果
問題 | No.2777 Wild Flush |
ユーザー |
|
提出日時 | 2024-06-07 22:50:25 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 231 bytes |
コンパイル時間 | 210 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 95,872 KB |
最終ジャッジ日時 | 2024-12-26 09:18:18 |
合計ジャッジ時間 | 4,037 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")