結果
| 問題 | No.2777 Wild Flush |
| コンテスト | |
| ユーザー |
northward
|
| 提出日時 | 2024-06-07 21:39:01 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 140 ms / 2,000 ms |
| コード長 | 321 bytes |
| 記録 | |
| コンパイル時間 | 864 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 29,020 KB |
| 最終ジャッジ日時 | 2026-06-01 04:24:01 |
| 合計ジャッジ時間 | 5,151 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 24 |
ソースコード
from collections import Counter
N, K = map(int, input().split())
A = list(map(int, input().split()))
cnt = Counter(A)
for k, v in cnt.items():
if k == 0:
if cnt[0] >= K:
print("Yes")
exit()
continue
if v + cnt[0] >= K:
print("Yes")
exit()
print("No")
northward