@@ -0,0 +1,1023 @@
+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 boolean isBeautiful(int x,int k)%7B%0A        ArrayList%3CInteger%3E list = new ArrayList%3CInteger%3E();%0A        int num = x;%0A        while(num!=0)%7B%0A            list.add(num%2510);%0A            num/=10;%0A        %7D%0A        int fac=1;%0A        int xRev=0;%0A        for(int i=list.size()-1;i%3E=0;i--)%7B%0A            xRev=xRev+list.get(i)*fac;%0A            fac*=10;%0A        %7D%0A        if(Math.abs(x-xRev)%25k==0) return true;%0A        else return false;%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */%0A        Scanner sc=new Scanner(System.in);%0A        int i=sc.nextInt();%0A        int j=sc.nextInt();%0A        int k=sc.nextInt();%0A        int count=0; %0A        for(int a=i;a%3C=j;a++)%7B%0A            if(isBeautiful(a,k)) count++;%0A        %7D%0A        System.out.println(count);%0A    %7D%0A%7D

add BeautifulDaysAtTheMovies.java