Chef and Water Bottles
Chef has $N$ empty bottles where each bottle has a capacity of $X$ litres. There is a water tank in Chefland having $K$ litres of water. Chef wants to fill the empty bottles using the water in the tank. Assuming that Chef does not spill any water while filling the bottles, find out the **maximum** number of bottles Chef can fill completely. ### 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.
Sign in to chat with the tutor and save your progress.
Sign in to start