結果
問題 | No.2777 Wild Flush |
ユーザー |
![]() |
提出日時 | 2024-06-07 22:10:32 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 89 ms / 2,000 ms |
コード長 | 205 bytes |
コンパイル時間 | 209 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 81,536 KB |
最終ジャッジ日時 | 2024-12-26 08:15:53 |
合計ジャッジ時間 | 3,493 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 24 |
ソースコード
N,K=map(int,input().split())A=list(map(int,input().split()))d=[0]*(N+1)zero=0for a in A:if a!=0:d[a]+=1else:zero+=1if zero+max(d)>=K:print("Yes")else:print("No")