@@ -0,0 +1,615 @@
+import java.io.*;%0Aimport java.util.*;%0A%0Aimport static java.lang.Math.*;%0A%0Apublic class Solution %7B%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 in = new Scanner(System.in);%0A        %0A        int tests = in.nextInt();%0A        int down, up;%0A        %0A        for (int t = 0; t %3C tests; t++) %7B%0A            %0A            down = (int) ceil(sqrt(in.nextInt()));%0A            up = (int) floor(sqrt(in.nextInt()));%0A            %0A            System.out.println(up + 1 - down);%0A        %7D%0A    %7D%0A%7D%0A

Create SherlockAndSquares.java