← All problemsSign in

Biscuit and Chocolate

Neha wants to distribute packs of biscuits (Rs. 10 each) and some chocolates (Rs. 5 each) to nearby children living in her locality on her birthday. She has a total budget of Rs. N and she is allowed to buy at most X biscuits and Y chocolates. Calculate if she will be able to give all C numbers of children something under her budget.If so, print **YES** or else print **NO** for each testcases.

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