← All problemsSign in

Rain in Chefland

CodeChefRating 328Open on judge ↗

In Chefland, precipitation is measured using a rain gauge in millimetre per hour. Chef categorises rainfall as: - `LIGHT`, if rainfall is less than $3$ millimetre per hour. - `MODERATE`, if rainfall is greater than equal to $3$ millimetre per hour and less than $7$ millimetre per hour. - `HEAVY` if rainfall is greater than equal to $7$ millimetre per hour. Given that it rains at $X$ millimetre

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