题解 | #牛牛的判断题#
牛牛的判断题
http://www.nowcoder.com/practice/51a046c13b3c4b64a07d69903a3cd4cf
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
String str[] = bf.readLine().split(" ");
int x = Integer.parseInt(str[0]);
int l = Integer.parseInt(str[1]);
int r = Integer.parseInt(str[2]);
if( (x>=l)&&(x<=r)){
System.out.println("true");
}else{
System.out.println("false");
}
}
}
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
String str[] = bf.readLine().split(" ");
int x = Integer.parseInt(str[0]);
int l = Integer.parseInt(str[1]);
int r = Integer.parseInt(str[2]);
if( (x>=l)&&(x<=r)){
System.out.println("true");
}else{
System.out.println("false");
}
}
}