結果
| 問題 | No.2777 Wild Flush |
| ユーザー |
|
| 提出日時 | 2026-11-11 12:38:31 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 236 bytes |
| 記録 | |
| コンパイル時間 | 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 |
ソースコード
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")