#CCBCHMUOI0000036. Mã lỗi của thiết bị (Device Status Code)
Mã lỗi của thiết bị (Device Status Code)
Device Status Code
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
A device reports an integer status code ma: 0 means normal operation, 1 low battery, 2 overheating and 3 disconnected. Print the associated status; any other code prints UNKNOWN.
Input
One integer status code ma.
Output
Print exactly OK, LOW_BATTERY, OVERHEAT, DISCONNECTED or UNKNOWN.
Subtasks
- Subtask 1 (20%): 0 <= ma <= 1.
- Subtask 2 (30%): 0 <= ma <= 3.
- Subtask 3 (50%): -1000 <= ma <= 1000.
Examples
Example 1
Input
2
Output
OVERHEAT
Explanation
Code 2 denotes overheating.
Example 2
Input
-1
Output
UNKNOWN
Explanation
-1 is not one of the four defined codes.