2017-03-05 00:26:42 -06:00
|
|
|
// Author: Rodney Shaghoulian
|
2018-07-27 16:45:56 -07:00
|
|
|
// Github: github.com/RodneyShag
|
|
|
|
|
// HackerRank: hackerrank.com/RodneyShag
|
2017-03-05 00:26:42 -06:00
|
|
|
|
|
|
|
|
import java.util.Scanner;
|
|
|
|
|
|
|
|
|
|
public class Solution {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
Scanner scan = new Scanner(System.in);
|
|
|
|
|
int T = scan.nextInt();
|
|
|
|
|
while (T-- > 0) {
|
|
|
|
|
int onTimeStudents = 0;
|
|
|
|
|
int N = scan.nextInt();
|
|
|
|
|
int K = scan.nextInt();
|
|
|
|
|
for (int i = 0; i < N; i++) {
|
|
|
|
|
if (scan.nextInt() <= 0) {
|
|
|
|
|
onTimeStudents++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
System.out.println(onTimeStudents < K ? "YES" : "NO");
|
|
|
|
|
}
|
|
|
|
|
scan.close();
|
|
|
|
|
}
|
|
|
|
|
}
|