結果

問題 No.2777 Wild Flush
ユーザー OTOFURAH-MEN
提出日時 2026-11-11 12:38:31
言語 Python3
(3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
TLE  
実行時間 -
コード長 236 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 52 ms
コンパイル使用メモリ 14,720 KB
実行使用メモリ 22,568 KB
最終ジャッジ日時 2026-11-11 12:38:39
合計ジャッジ時間 7,987 ms
ジャッジサーバーID
(参考情報)
judge5_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 6 TLE * 1 -- * 16
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
N,K=map(int,input().split())
A=list(map(int,input().split()))
cards=set(A)
wild=A.count(0)
if wild>=K:
	print("Yes")
	sys.exit()
for x in A:
	if x==0:
		continue
	if wild+A.count(x)>=K:
		print("Yes")
		sys.exit()
print("No")
0