結果
問題 |
No.2777 Wild Flush
|
ユーザー |
![]() |
提出日時 | 2024-06-07 21:43:27 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 139 ms / 2,000 ms |
コード長 | 328 bytes |
コンパイル時間 | 107 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 25,200 KB |
最終ジャッジ日時 | 2024-12-26 07:32:30 |
合計ジャッジ時間 | 3,415 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 24 |
ソースコード
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")