#CCBCMCHIN0000023. Interval (Interval)
Interval (Interval)
Interval
Source: beecrowd
Version: Phuoc Hung OJ Extended
Problem Statement
Given real , find which one of the intervals , , , contains it. If is outside , report that it lies outside.
Input
One line contains real with at most two digits after the decimal point.
Output
Print exactly Intervalo [0,25], Intervalo (25,50], Intervalo (50,75], Intervalo (75,100], or Fora de intervalo.
Subtasks
- Subtask 1 (20 points): ; at most two decimal places.
- Subtask 2 (30 points): ; at most two decimal places.
- Subtask 3 (50 points): ; at most two decimal places.
Examples
Example 1
Input
25.01
Output
Intervalo (25,50]
Explanation
The input gives 25.01. The value 25.01 is checked against the interval boundaries 0, 25, 50, 75 and 100 in order. Therefore the required output is ['Intervalo (25,50]'].
Example 2
Input
25.00
Output
Intervalo [0,25]
Explanation
The input gives 25.00. The value 25.00 is checked against the interval boundaries 0, 25, 50, 75 and 100 in order. Therefore the required output is ['Intervalo [0,25]'].
Example 3
Input
-0.01
Output
Fora de intervalo
Explanation
The input gives -0.01. The value -0.01 is checked against the interval boundaries 0, 25, 50, 75 and 100 in order. Therefore the required output is ['Fora de intervalo'].