@@ -0,0 +1,1036 @@
+package java_problems.easy;%0D%0A%0D%0Aimport java.util.Scanner;%0D%0A%0D%0Apublic class CleaningUp %7B%0D%0A%0D%0A%09public static void main(String%5B%5D args) %7B%0D%0A%09%09%0D%0A%09%09Scanner sc = new Scanner(System.in);%0D%0A%09%09int numCases = Integer.parseInt(sc.nextLine());%0D%0A%09%09for (int i = 0; i %3C numCases; i++) %7B%0D%0A%09%09%09int totalJobsToComplete = sc.nextInt();%0D%0A%09%09%09int numJobsAlreadyComplete = sc.nextInt();%0D%0A%09%09%09boolean%5B%5D array = new boolean%5BtotalJobsToComplete + 1%5D;%0D%0A%09%09%09for (int j = 0; j %3C numJobsAlreadyComplete; j++) %7B%0D%0A%09%09%09%09int index = sc.nextInt();%0D%0A%09%09%09%09array%5Bindex%5D = true;%0D%0A%09%09%09%7D%0D%0A%09%09%09%0D%0A%09%09%09int jobCount = 0;%0D%0A%09%09%09for (int k = 1; k %3C array.length; k++) %7B%0D%0A%09%09%09%09if (array%5Bk%5D == false) %7B%0D%0A%09%09%09%09%09jobCount++;%0D%0A%09%09%09%09%09if (jobCount %25 2 != 0) %7B%0D%0A%09%09%09%09%09%09System.out.print(k + %22 %22);%0D%0A%09%09%09%09%09%7D%0D%0A%09%09%09%09%7D%0D%0A%09%09%09%7D%0D%0A%09%09%09System.out.println();%0D%0A%09%09%09jobCount = 0;%0D%0A%09%09%09for (int index = 1; index %3C array.length; index++) %7B%0D%0A%09%09%09%09if (array%5Bindex%5D == false) %7B%0D%0A%09%09%09%09%09jobCount++;%0D%0A%09%09%09%09%09if (jobCount %25 2 == 0) %7B%0D%0A%09%09%09%09%09%09System.out.print(index + %22 %22);%0D%0A%09%09%09%09%09%7D%0D%0A%09%09%09%09%7D%0D%0A%09%09%09%7D%0D%0A%09%09%09System.out.println();%0D%0A%09%09%7D%0D%0A%09%09sc.close();%0D%0A%09%7D%0D%0A%7D

Add CleaningUp