結果

問題 No.2777 Wild Flush
ユーザー rlangevinrlangevin
提出日時 2024-06-07 21:26:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 257 bytes
コンパイル時間 194 ms
コンパイル使用メモリ 81,948 KB
実行使用メモリ 98,816 KB
最終ジャッジ日時 2024-06-07 21:26:38
合計ジャッジ時間 2,994 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
53,120 KB
testcase_01 AC 40 ms
53,248 KB
testcase_02 AC 38 ms
53,568 KB
testcase_03 AC 38 ms
53,888 KB
testcase_04 AC 38 ms
53,120 KB
testcase_05 AC 38 ms
53,288 KB
testcase_06 AC 42 ms
53,504 KB
testcase_07 AC 39 ms
53,632 KB
testcase_08 AC 37 ms
53,504 KB
testcase_09 AC 64 ms
80,128 KB
testcase_10 AC 63 ms
80,512 KB
testcase_11 AC 63 ms
80,640 KB
testcase_12 AC 83 ms
98,816 KB
testcase_13 AC 84 ms
94,848 KB
testcase_14 AC 85 ms
94,044 KB
testcase_15 AC 86 ms
93,952 KB
testcase_16 AC 50 ms
64,884 KB
testcase_17 AC 83 ms
94,080 KB
testcase_18 AC 71 ms
83,288 KB
testcase_19 AC 70 ms
83,456 KB
testcase_20 AC 57 ms
70,144 KB
testcase_21 AC 51 ms
66,176 KB
testcase_22 AC 69 ms
81,152 KB
testcase_23 AC 70 ms
80,896 KB
testcase_24 AC 72 ms
84,708 KB
testcase_25 AC 83 ms
94,080 KB
testcase_26 AC 80 ms
91,136 KB
testcase_27 AC 63 ms
77,056 KB
testcase_28 AC 51 ms
65,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *

N, K = map(int, input().split())
A = list(map(int, input().split()))
C = Counter(A)
zero = C[0]
ma = 0
for k, v in C.items():
    if k == 0:
        continue
    ma = max(ma, v)
    
print("Yes") if ma + zero >= K else print("No")
0