結果
| 問題 | No.2777 Wild Flush |
| コンテスト | |
| ユーザー |
northward
|
| 提出日時 | 2024-06-07 21:39:01 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 63 ms / 2,000 ms |
| + 83µs | |
| コード長 | 321 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 25,536 KB |
| 最終ジャッジ日時 | 2026-10-08 05:14:22 |
| 合計ジャッジ時間 | 3,083 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_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