#CCBCMCHIN0000048. Ba khoảng kề nhau (Four Adjacent Ranges)
Ba khoảng kề nhau (Four Adjacent Ranges)
Four Adjacent Ranges
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given integer , classify it into one of four disjoint ranges: negative; [0,100); [100,200]; or greater than 200.
Input
One integer .
Output
Print NEG, LOW, MID, or HIGH according to the range of .
Subtasks
-
Subtask 1 (20 points): x is in [-10,10].
-
Subtask 2 (30 points): x is in [-200,200].
-
Subtask 3 (50 points): x is in [-1000,1000].
Examples
Example 1
Input
100
Output
MID
Explanation
For this input, the case-specific computation and the required exact output are shown above. 100 belongs to the inclusive MID interval.
Example 2
Input
201
Output
HIGH
Explanation
For this input, the case-specific computation and the required exact output are shown above. 201 exceeds the upper bound of MID.