#140. 三数差值判断
三数差值判断
Difference Check
Background
Congcong is currently learning about number comparisons. He encountered an interesting problem that requires determining if there is a significant difference between three numbers.
Problem Description
Given three integers , return true if one of them is 10 or more less than one of the others.
In other words, if or or holds, return true; otherwise, return false.
Input Format
Input is given from standard input in the following format.
Output Format
Output is printed to standard output in the following format.
Output
trueif the condition is met; otherwise, outputfalse.
Sample
1 7 11
true
1 7 10
false
11 1 7
true
Sample Explanation
Sample 1:
.
. Since , the condition is met, so output true.
Sample 2:
.
.
.
.
All differences are less than 10, so the condition is not met, output false.
Sample 3:
.
. Since , the condition is met, so output true.
Constraints
For each test case, the time limit is 1 second, and the memory limit is 1024 KiB. The input integers satisfy the range of standard integer types.