← All problemsSign in

Spice Level

CodeChefRating 390Open on judge ↗

Each item in Chef’s menu is assigned a spice level from $1$ to $10$. Based on the spice level, the item is categorised as: - `MILD`: If the spice level is less than $4$. - `MEDIUM`: If the spice level is greater than equal to $4$ but less than $7$. - `HOT`: If the spice level is greater than equal to $7$. Given that the spice level of an item is $X$, find the category it lies in. ### Input - The

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start