Chef and the Hair Salon
Chef recently realized that he needs a haircut, and went to his favorite hair salon. At the salon, he found $N$ customers waiting for their haircuts. From his past experience, Chef knows that the salon takes $M$ minutes per customer. Only one person can get their haircut at a time. For how many minutes will Chef have to wait before he can get his haircut? ### Input - The first line of input cont
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.
Sign in to chat with the tutor and save your progress.
Sign in to start