TV Discount
Chef is looking to buy a TV and has shortlisted two models. The first one costs $A$ rupees, while the second one costs $B$ rupees. Since there is a huge sale coming up on Chefzon, Chef can get a flat discount of $C$ rupees on the first TV, and a flat discount of $D$ rupees on the second one. Help Chef determine which of the two TVs would be cheaper to buy during the sale. ### Input - The first
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