結果

問題 No.2777 Wild Flush
ユーザー koukikawagoekoukikawagoe
提出日時 2024-06-07 22:56:35
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 250 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 130,944 KB
最終ジャッジ日時 2024-12-26 09:33:31
合計ジャッジ時間 7,373 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 2
other AC * 7 WA * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

import statistics

N,K= map(int, input().split())
A = list(map(int, input().split()))

if A.count(statistics.mode(A)) >= K:
    print("Yes")
elif A.count(statistics.mode(A)) + 1 == K:
    if 0 in A :
        print("Yes")
    else:
        print("No")
0