solved angry professor

Signed-off-by: ayham <altffour@protonmail.com>
This commit is contained in:
ayham 2021-05-09 14:43:31 +03:00
parent 68cf7c91b0
commit 79297f1383
No known key found for this signature in database
GPG Key ID: 81D38F7122AFCC94
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
#include <bits/stdc++.h>
using namespace std;
int main() {
int t, n, k;
cin >> t;
while (t--) {
int count = 0;
cin >> n >> k;
for (int i = 0; i < n; i++) {
int tmp;
cin >> tmp;
if (tmp <= 0) count++;
}
cout << ((count >= k) ? "NO" : "YES") << endl;
}
return 0;
}