結果
| 問題 | No.2777 Wild Flush |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-07 21:45:36 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 55 ms / 2,000 ms |
| + 267µs | |
| コード長 | 342 bytes |
| 記録 | |
| コンパイル時間 | 64 ms |
| コンパイル使用メモリ | 83,024 KB |
| 実行使用メモリ | 102,428 KB |
| 最終ジャッジ日時 | 2026-10-08 05:20:44 |
| 合計ジャッジ時間 | 2,905 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 24 |
ソースコード
from collections import defaultdict
N,K=map(int,input().split())
A=list(map(int,input().split()))
count=defaultdict(lambda: 0)
for i in range(len(A)):
count[A[i]]+=1
_0count=count[0]
for key in count:
if key==0:
if count[0]>=K:
print("Yes")
exit()
elif count[key]+_0count>=K:
print("Yes")
exit()
print("No")