[Solution] Is it hot or cold CodeChef Solution
Problem
Chef considers the climate HOT
if the temperature is above , otherwise he considers it COLD
. You are given the temperature , find whether the climate is HOT
or COLD
.
Input Format
- The first line of input will contain a single integer , denoting the number of test cases.
- The first and only line of each test case contains a single integer, the temperature .
Output Format
For each test case, print on a new line whether the climate is HOT
or COLD
.
You may print each character of the string in either uppercase or lowercase (for example, the strings hOt
, hot
, Hot
,
Is it hot or cold CodeChef Solution
Maximise the Tastiness CodeChef Solution
N Buttons 1 Bulb CodeChef Solution
Valid Minimum CodeChef Solution
High Frequency CodeChef Solution
Split The String CodeChef Solution
Good Indices CodeChef Solution
and HOT
will all be treated as identical).
Explanation:
Test case : The temperature is , which is more than . So, Chef considers the climate HOT
.
Test case : The temperature is , which is not more than . So, Chef considers the climate COLD
.
No comments:
Post a Comment