PROBLEM LINK:
Setter: inov_360
Testers: iceknight1093 , jeevanjyot
Editorialist: kiran8268
DIFFICULTY:
410
PREREQUISITES:
None
PROBLEM:
Chef considers the climate HOT if the temperature is above 20, otherwise he considers it COLD. You are given the temperature C, find whether the climate is HOT or COLD.
EXPLANATION:
The objective is to input a value C and compare it with 20.
If its below 20 output COLD else output HOT
TIME COMPLEXITY:
Time complexity is O(1).
SOLUTION:
Editorialist's Solution
int t;
cin>>t;
while(t--)
{
int c;
cin>>c;
if(c>20)
cout<<"HOT"<<"\n";
else
cout<<"COLD"<<"\n";
}