← All problemsSign in

Healthy Sleep

CodeChefRating 250Open on judge ↗

At `IIITA`, students have diverse sleep patterns, and there isn't a fixed duration for their daily sleep. Typical scientific recommendations suggest that the duration of a healthy sleep is $8$ hours per day. As you begin your journey as a programmer, you've been tasked by the renowned programmer of `IIITA`, Pavitra Pandey, with your first project. Your assignment is to write a program that t

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