package hackerrank;

/**
 * https://www.hackerrank.com/challenges/angry-professor
 */
public class AngryProfessor {
    public static void main(String[] args) {

    }
}

@@ -14,16 +14,43 @@
 rrank;%0A%0A
+import java.util.Scanner;%0A%0A
 /**%0A * h
@@ -181,16 +181,573 @@
 args) %7B%0A
+        Scanner in = new Scanner(System.in);%0A        int testCases = in.nextInt();%0A        for (int t = 0; t %3C testCases; t++) %7B%0A            int n = in.nextInt();%0A            int k = in.nextInt();%0A            int onTime = 0;%0A            for (int i = 0; i %3C n; i++) %7B%0A                int a = in.nextInt();%0A                if (a %3C= 0) %7B%0A                    onTime++;%0A                %7D%0A            %7D%0A            if (onTime %3E= k) %7B%0A                System.out.println(%22NO%22);%0A            %7D else %7B%0A                System.out.println(%22YES%22);%0A            %7D%0A        %7D
 %0A    %7D%0A%7D

Solve Angry Professor problem