#179. 范围判断
范围判断
Range Check
Background
Dawei is teaching students about conditional statements. He has given a simple task, asking students to determine if two given numbers satisfy specific range conditions.
Problem Description
Given two integer values, return true if they are both in the range inclusive, or they are both in the range inclusive. Otherwise, return false.
Input Format
Input is given from standard input in the following format.
Two integers and , separated by a space.
Output Format
Output is printed to standard output in the following format.
Output
trueif the condition is met, otherwise outputfalse.
Sample
30 31
true
30 41
false
40 50
true
Sample Explanation
Sample 1: and are both within the closed interval , so true is returned.
Sample 2: is within the closed interval , but is within the closed interval . They are not in the same range, so false is returned.
Sample 3: and are both within the closed interval , so true is returned.
Constraints
For each test case, the time limit is second, and the memory limit is KiB. The input integers satisfy .