Snacks Time
CodeChefOpen on judge ↗
It's snacks time. Khushi is very hungry and wants to eat something. She has XX rupees in her pocket. Since Khushi is very picky, she only likes to eat either PIZZA or BROWNIE. In addition, she prefers eating PIZZA over eating BROWNIE. The cost of a PIZZA is YY rupees while the cost of a BROWNIE is ZZ rupees. Khushi can eat at most one thing. Find out what will be she eating for her dinner. ###
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