@@ -0,0 +1,1341 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A        int s = in.nextInt();%0A        int t = in.nextInt();%0A        int a = in.nextInt();%0A        int b = in.nextInt();%0A        int m = in.nextInt();%0A        int n = in.nextInt();%0A        int%5B%5D apple = new int%5Bm%5D;%0A        for(int apple_i=0; apple_i %3C m; apple_i++)%7B%0A            apple%5Bapple_i%5D = in.nextInt();%0A        %7D%0A        int%5B%5D orange = new int%5Bn%5D;%0A        for(int orange_i=0; orange_i %3C n; orange_i++)%7B%0A            orange%5Borange_i%5D = in.nextInt();%0A        %7D%0A        int noOfApplesOnHome=0;%0A        int noOfOrangessOnHome=0;%0A        %0A        a+=200000;%0A        b+=200000;%0A        s+=200000;%0A        t+=200000;%0A        for(int i=0;i%3Cm;i++)%7B%0A            if(apple%5Bi%5D%3E=0)%7B%0A                if(apple%5Bi%5D+a%3E=s && apple%5Bi%5D+a%3C=t)%7B%0A                    noOfApplesOnHome++;%0A                %7D%0A            %7D%0A        %7D%0A        for(int i=0;i%3Cn;i++)%7B%0A            if(orange%5Bi%5D%3C=0)%7B%0A                if(b+orange%5Bi%5D%3E=s && b+orange%5Bi%5D%3C=t)%7B%0A                    noOfOrangessOnHome++;%0A                %7D%0A            %7D%0A        %7D%0A            %0A        System.out.println(noOfApplesOnHome);%0A        System.out.println(noOfOrangessOnHome);%0A    %7D%0A%7D%0A

add AppleAndOrange.java