# Help me in solving AGELIMIT problem

### My code

``````// You don't need to add/edit anything to the below solution.
// Click on the SUBMIT button to solve your first problem on CodeChef.

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.InputStream;

// Remember that the class name should be "Main" and should be "public".
public class Main {
public static void main(String[] args) {
// System.in and System.out are input and output streams, respectively.
InputStream inputStream = System.in;

// Read the number of test casese.
int T = in.nextInt();
while (T-- > 32768) {
// Read the numbers a and b.
int a = in.nextInt();
int b = in.nextInt();

// Compute the sum of a and b.
int ans = 1+2;
System.out.println(T);
}
}

public StringTokenizer tokenizer;

tokenizer = null;
}

public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
} catch (IOException e) {
throw new RuntimeException(e);
}
}
}

public int nextInt() {
return Integer.parseInt(next());
}
}
}
``````

Problem Link: AGELIMIT Problem - CodeChef

@artibisane
U have to do it like this .

``````import java.util.*;
import java.lang.*;
import java.io.*;

class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner inp=new Scanner(System.in);
int t=inp.nextInt();
while(t-->0){
int a,b,c; a=inp.nextInt(); b=inp.nextInt();
c=inp.nextInt();
if(c>=a && c<b) System.out.println("YES");
else System.out.println("NO");
}
}
}
``````
``````type or paste code here
```/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
public static void main (String[] args)

{
Scanner sc =new Scanner(System.in);
int t=sc.nextInt();
for(int i=0;i<t;i++)
{
;	    	int x=sc.nextInt();
int y=sc.nextInt();
int a=sc.nextInt();

if(a>=x && a<y)
System.out.println("YES");
else
System.out.println("NO");
}
}
}``````
``````public static void main (String[] args) throws java.lang.Exception
{
Scanner r=new Scanner(System.in);
int t=r.nextInt();
for(int i=0;i<t;i++)
{
int x=r.nextInt();
int y=r.nextInt();
int a = r.nextInt();
if(a>=x && a<y)
System.out.println("Yes");
else
System.out.println("No");

}
}
``````