@@ -0,0 +1,1246 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0A/**%0A*   Solution to https://www.hackerrank.com/challenges/angry-professor/%0A*/%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A%0A        int tests = readInt(in);%0A%0A        for (int test = 0; test %3C tests; test++) %7B%0A            int%5B%5D studentsAndTreshold = readNumbers(in);%0A            int students = studentsAndTreshold%5B0%5D;%0A            int tresh = studentsAndTreshold%5B1%5D;%0A%0A            int%5B%5D arrivals = readNumbers(in);%0A            int onTime = 0;%0A%0A            for (int arrival : arrivals) %7B%0A                if (arrival %3C= 0) onTime++;%0A            %7D%0A%0A            System.out.println(onTime %3C tresh ? %22YES%22 : %22NO%22);%0A        %7D%0A    %7D%0A%0A    private static int readInt(Scanner in) %7B%0A        return Integer.parseInt(in.nextLine().trim());%0A    %7D%0A%0A    private static int%5B%5D readNumbers(Scanner in) %7B%0A        String next = in.nextLine().trim();%0A        String%5B%5D split = next.split(%22%5C%5Cs+%22);%0A%0A        int%5B%5D numbers = new int%5Bsplit.length%5D;%0A%0A        for (int i = 0; i %3C split.length; i++) %7B%0A            numbers%5Bi%5D = Integer.parseInt(split%5Bi%5D.trim());%0A        %7D%0A%0A        return numbers;%0A    %7D%0A%7D%0A

Create angry-professor.java