結果
問題 |
No.2777 Wild Flush
|
ユーザー |
![]() |
提出日時 | 2024-06-07 21:44:09 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 300 bytes |
コンパイル時間 | 206 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 109,568 KB |
最終ジャッジ日時 | 2024-12-26 07:33:36 |
合計ジャッジ時間 | 4,002 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 WA * 1 |
other | AC * 9 WA * 15 |
ソースコード
from collections import Counter N, K = map(int, input().split()) A = list(map(int, input().split())) cnt = Counter(A) a = None for k, c in cnt.most_common(): if k == 0: continue else: a = k break if not a or a + cnt[0] >= K: print('Yes') else: print('No')