Better Experience Download iQuanta App

Google PlayApp Store
Performer
27d
#Doubt Responded

Doubt in iim abc

It’s iim abc day 59 question
In this i solved in this way can I pls check it as this is different from what’s given in solution @Nikhil Goyal sir

Comments1

Superman - iQuanta

Superman - iQuanta

Your method is correct. Setting x-y = 0 gives the best case because x+y (and hence y) can be as large as 8, while tilting away from x-y = 0 forces x+y to drop faster. When x-y = 0, the constraint becomes |x+y-4| <= 4, so x+y <= 8, giving x = 4, y = 4. 2x+y = 8+4 = 12 The quicker way to see it: let u = x-y and v = x+y-4, constraint is |u|+|v| <= 4. Then 2x+y = u/2 + 3v/2 + 6, which is maximised at u = 0, v = 4, giving 6+6 = 12. 12

Log in to join the discussion.