#285. 判断整数是否接近100或200
判断整数是否接近100或200
Close to 100 or 200
Background
Congcong has recently been studying the properties of numbers. He wants to know if a given integer is "close" to a specific value.
Problem Description
Given an integer , return true if it is within of (i.e., ) or within of (i.e., ). Otherwise, return false.
Note: Math.abs(num) computes the absolute value of a number.
Input Format
Input is given from Standard Input in the following format.
An integer .
Output Format
Output is to Standard Output in the following format.
Output
trueif the condition is met, otherwise outputfalse.
Sample
93
true
90
true
89
false
Sample Explanation
For the sample input , since , the condition is met, and true is output.
Constraints
is an integer, its value is within the range of standard integer types. Time limit: second, Memory limit: MiB.