結果

問題 No.2777 Wild Flush
ユーザー koukikawagoekoukikawagoe
提出日時 2024-06-07 23:06:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 248 bytes
コンパイル時間 110 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 24,780 KB
最終ジャッジ日時 2024-06-07 23:06:54
合計ジャッジ時間 3,278 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
13,824 KB
testcase_01 AC 47 ms
13,696 KB
testcase_02 RE -
testcase_03 AC 48 ms
13,696 KB
testcase_04 AC 47 ms
13,824 KB
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 AC 49 ms
13,696 KB
testcase_09 AC 84 ms
15,436 KB
testcase_10 AC 81 ms
15,436 KB
testcase_11 WA -
testcase_12 RE -
testcase_13 RE -
testcase_14 AC 124 ms
24,780 KB
testcase_15 RE -
testcase_16 RE -
testcase_17 AC 111 ms
24,240 KB
testcase_18 AC 88 ms
20,400 KB
testcase_19 RE -
testcase_20 RE -
testcase_21 AC 58 ms
15,232 KB
testcase_22 RE -
testcase_23 AC 87 ms
20,608 KB
testcase_24 RE -
testcase_25 AC 132 ms
24,524 KB
testcase_26 AC 110 ms
24,076 KB
testcase_27 AC 79 ms
19,376 KB
testcase_28 AC 57 ms
15,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import statistics

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

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