← All problemsSign in

Alice likes Ice-cream

Alice likes to eat ice-cream. She knows only those ice-creams are tasty which has a height in the range of $l$ to $r$. Each scoop has a height of $a$ units. Determine the minimum and the maximum number of scoops she should add such that the ice-cream is tasty. Note: We calculate the height of ice-cream solely based on the number of scoops. ###Input: - First line will contain $T$, number o

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