← All problemsSign in

Halloween Treat

It’s Halloween Night and you are planning to give trick or treat sweets to the kids who come to your doorstep. In a preparation, you are making a treat by mixing together three different types of flavors: White Chocolate, Strawberry and Butterscotch. Let’s name them A, B and C. You want to decide what fraction of the mixture should be made from each type available, in such a way that the maximum

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