結果
| 問題 | No.2777 Wild Flush |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2024-06-07 21:43:27 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 70 ms / 2,000 ms |
| + 222µs | |
| コード長 | 328 bytes |
| 記録 | |
| コンパイル時間 | 50 ms |
| コンパイル使用メモリ | 14,720 KB |
| 実行使用メモリ | 25,068 KB |
| 最終ジャッジ日時 | 2026-11-21 16:30:03 |
| 合計ジャッジ時間 | 2,836 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 25 |
ソースコード
import sys
input = sys.stdin.readline
from collections import Counter
N,K=map(int,input().split())
A=list(map(int,input().split()))
C=Counter(A)
flag=0
for c in C:
if c==0:
if C[c]>=K:
flag=1
else:
if C[c]+C[0]>=K:
flag=1
if flag==1:
print("Yes")
else:
print("No")
titia