#!/bin/python import sys ''' Sample Input: 2 <-- t : number of test cases 4 3 <-- n k : n is number of students in class, k is the cancelation threshold -1 -3 4 2 <-- a : arrival times of each student 4 2 <-- n k 0 -1 2 1 <-- a Sample Output: YES NO ''' t = int(raw_input().strip()) printout = "" for a0 in xrange(t): s=0 n,k = raw_input().strip().split(' ') n,k = [int(n),int(k)] a = map(int,raw_input().strip().split(' ')) for i in a: if i <= 0: s=s+1 if s