結果

問題 No.2777 Wild Flush
ユーザー koukikawagoekoukikawagoe
提出日時 2024-06-07 23:05:50
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 294 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 120,176 KB
最終ジャッジ日時 2024-06-07 23:06:06
合計ジャッジ時間 5,575 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 174 ms
88,052 KB
testcase_01 AC 130 ms
88,368 KB
testcase_02 RE -
testcase_03 AC 124 ms
88,236 KB
testcase_04 AC 129 ms
88,024 KB
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 AC 130 ms
88,272 KB
testcase_09 AC 145 ms
100,940 KB
testcase_10 AC 172 ms
100,884 KB
testcase_11 WA -
testcase_12 RE -
testcase_13 RE -
testcase_14 AC 186 ms
120,084 KB
testcase_15 RE -
testcase_16 RE -
testcase_17 AC 183 ms
120,160 KB
testcase_18 AC 167 ms
107,536 KB
testcase_19 RE -
testcase_20 RE -
testcase_21 AC 134 ms
88,876 KB
testcase_22 RE -
testcase_23 AC 184 ms
104,988 KB
testcase_24 RE -
testcase_25 AC 183 ms
120,176 KB
testcase_26 AC 178 ms
116,672 KB
testcase_27 AC 153 ms
100,356 KB
testcase_28 AC 138 ms
88,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import statistics

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

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