結果
| 問題 |
No.2777 Wild Flush
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-25 10:51:51 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 77 ms / 2,000 ms |
| コード長 | 198 bytes |
| コンパイル時間 | 306 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 20,844 KB |
| 最終ジャッジ日時 | 2024-08-25 10:51:55 |
| 合計ジャッジ時間 | 3,640 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 24 |
ソースコード
n, k = map(int, input().split())
A = list(map(int, input().split()))
num = [0] * (n+1)
for a in A:
num[a] += 1
MAX = max(num[1:])
if MAX + num[0] >= k:
print("Yes")
else:
print("No")