← All problemsSign in

Movie Snacks

CodeChefRating 263Open on judge ↗

Chef is watching a movie, and during the intermission, wants to get himself some snacks. A bucket of popcorn costs $X$ rupees, and a drink costs $Y$ rupees. There is also a combo offer available, which provides one bucket of popcorn and one drink at a cost of $Z$ rupees. Chef wants to buy two buckets of popcorn and three drinks. What's the **minimum** amount he needs to pay to do so? ### In

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