#SCKTIFELSE0000001. Phân loại nhiệt độ (Temperature Classification)
Bài tập này chưa được xếp vào lộ trình.
Mục lục đề ⌄
Phân loại nhiệt độ (Temperature Classification)
Temperature Classification
Version: Phuoc Hung OJ Extended
Problem Statement
A monitoring station records the air temperature as an integer in degrees Celsius. The station assigns this temperature to one of three categories. A value below is cold; a value from through , inclusive, is comfortable; and a value above is hot. Determine the category of the recorded temperature.
Input
A single line containing the integer , the temperature in degrees Celsius.
Output
Print exactly one keyword: LANH if , DE_CHIU if , or NONG if .
Subtasks
-
Subtask 1 (20 points):
-
Subtask 2 (30 points):
-
Subtask 3 (50 points):
Examples
Example 1
Input
19
Output
LANH
Explanation
Since , the temperature is classified as cold.
Example 2
Input
30
Output
DE_CHIU
Explanation
The value is the upper boundary of the comfortable range and is included.
Example 3
Input
31
Output
NONG
Explanation
Since , the temperature is classified as hot.