@@ -0,0 +1,1844 @@
+import java.util.*;%0Aimport java.lang.*;%0Aimport java.io.*;%0A%0Aclass Codechef%0A%7B%0A%09static class FastReader %0A    %7B %0A        BufferedReader br; %0A        StringTokenizer st; %0A  %0A        public FastReader() %0A        %7B %0A            br = new BufferedReader(new%0A                     InputStreamReader(System.in)); %0A        %7D %0A  %0A        String next() %0A        %7B %0A            while (st == null %7C%7C !st.hasMoreElements()) %0A            %7B %0A                try%0A                %7B %0A                    st = new StringTokenizer(br.readLine()); %0A                %7D %0A                catch (IOException  e) %0A                %7B %0A                    e.printStackTrace(); %0A                %7D %0A            %7D %0A            return st.nextToken(); %0A        %7D %0A  %0A        int nextInt() %0A        %7B %0A            return Integer.parseInt(next()); %0A        %7D%0A        %0A        %0A        long nextLong() %0A        %7B %0A            return Long.parseLong(next()); %0A        %7D %0A  %0A        double nextDouble() %0A        %7B %0A            return Double.parseDouble(next()); %0A        %7D %0A  %0A        String nextLine() %0A        %7B %0A            String str = %22%22; %0A            try%0A            %7B %0A                str = br.readLine(); %0A            %7D %0A            catch (IOException e) %0A            %7B %0A                e.printStackTrace(); %0A            %7D %0A            return str; %0A        %7D %0A    %7D%0A%09public static void main(String%5B%5D args) throws java.lang.Exception%7B%0A%09%09FastReader sc=new FastReader();%0A%09%09int t=sc.nextInt();%0A%09%09while(t--%3E0) %7B%0A%09%09%09long x=sc.nextInt();%0A%09%09%09long r=sc.nextInt();%0A%09%09%09long m=sc.nextInt();%0A%09%09%09r=r*60;%0A%09%09%09m=m*60;%0A%09%09%09if(r%3Cx) %7B%0A%09%09%09%09if(r%3C=m) %7B%0A%09%09%09%09%09System.out.println(%22YES%22);%0A%09%09%09%09%7D%0A%09%09%09%09else %7B%0A%09%09%09%09%09System.out.println(%22NO%22);%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%09else %7B%0A%09%09%09%09long rem=r-x;%0A%09%09%09%09rem=rem*2;%0A%09%09%09%09if(x+rem%3C=m) %7B%0A%09%09%09%09%09System.out.println(%22YES%22);%0A%09%09%09%09%7D%0A%09%09%09%09else %7B%0A%09%09%09%09%09System.out.println(%22NO%22);%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%7D%0A

Create Racing.java