← All problemsSign in

Hair Cutting

You need a haircut and you are going to a saloon and there $N$ number of person who are waiting for their turn. Barber takes: - $20$ min for Haircut i.e. denoted by ‘$0$’ - $15$ min for Shave i.e. denoted by ‘$1$’ - $30$ for both(Haircut+Shave) i.e. denoted by ‘$2$’ You need to print how much time (in minutes) you need to wait for your turn. ### Input - First line will contain $T$, number of

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