← All problemsSign in

Mango Juice

In a Juice centre there are some mangoes kept in a basket. The basket contains both small size mangoes and large size mangoes. If a juice seller wants to prepare a glass of juice he has to either use one large size mango or two small size mangoes. If a basket contains $M$ large mangoes and $N$ small size mangoes, how many glasses of mango juice can be prepared? ###Input: - The first line 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