#CCBCMCHIN0000014. Điểm đúng nửa khoảng (Half-open Interval Membership)
Điểm đúng nửa khoảng (Half-open Interval Membership)
Half-open Interval Membership
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given and integer , determine whether is in the half-open interval : is included and is excluded.
Input
One line containing integers .
Output
Print IN if ; otherwise print OUT.
Subtasks
- Subtask 1 (20 points): , ; .
- Subtask 2 (30 points): , ; .
- Subtask 3 (50 points): , ; .
Examples
Example 1
Input
1 5 5
Output
OUT
Explanation
The input gives 1, 5, 5. 1 <= 5 is True, and 5 < 5 is False. Therefore the required output is ['OUT'].
Example 2
Input
1 5 1
Output
IN
Explanation
The input gives 1, 5, 1. 1 <= 1 is True, and 1 < 5 is True. Therefore the required output is ['IN'].