結果
| 問題 | No.2777 Wild Flush |
| コンテスト | |
| ユーザー |
回転
|
| 提出日時 | 2025-07-30 00:52:56 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 99 ms / 2,000 ms |
| + 79µs | |
| コード長 | 222 bytes |
| 記録 | |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 95,984 KB |
| 実行使用メモリ | 99,264 KB |
| 最終ジャッジ日時 | 2026-07-13 15:26:42 |
| 合計ジャッジ時間 | 4,679 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 24 |
ソースコード
from collections import Counter
N,K = list(map(int,input().split()))
A = list(map(int,input().split()))
ca = Counter(A)
ca[-1] = 0
zero = ca.pop(0) if 0 in ca else 0
print("Yes" if max(ca.values()) + zero >= K else "No")
回転