This post is all about the solution of the Spice Level Starters 70 (Rated till 6-Stars) codechef problem solution.
Problem Statement:
Evey item on Chef's menu has a spice level ranging from 11 to 1010. The item is classified as follows based on its spice level:
If the spice level is less than 44, it is considered mild.
MEDIUM: When the spice level is higher than 44 but less than 77.
HOT: If the spice level is higher than 77.
Determine the category of an item based on its spice level of XX.
Format of Input :
The number of test cases will be indicated by a single integer TT in the first line of input.
Evey testing phase consists of an integer XX — the item's spice level.
Format of the Output :
For each test case, output on a new line, the category that the item lies in.
You may print each character in uppercase or lowercase. For example, HOT
, hot
, Hot
, and hOT
are all considered the same.
0 Comments