結果
問題 |
No.2777 Wild Flush
|
ユーザー |
![]() |
提出日時 | 2024-06-07 22:40:55 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 99 ms / 2,000 ms |
コード長 | 251 bytes |
コンパイル時間 | 336 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 99,072 KB |
最終ジャッジ日時 | 2024-12-26 08:57:36 |
合計ジャッジ時間 | 3,818 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 24 |
ソースコード
from collections import Counter N, K = map(int, input().split()) A = list(map(int, input().split())) freq = Counter(A) for k, v in freq.items(): if v >= K or (k > 0 and v + freq[0] >= K): print('Yes') break else: print('No')