Better Experience Download iQuanta App

Google PlayApp Store
Learner
16d
#Doubt Responded

Doubt

Not able to understand the solution

Comments7

Superman - iQuanta

Superman - iQuanta

Total sum = 5×12 = 60, two smallest sum = 4×2 = 8, so the three larger numbers sum to 60 - 8 = 52. To maximize the biggest, pick the two smallest integers that are still larger than both small numbers. The two smallest can be 3 and 5 (distinct, sum 8), so the three larger ones must be > 5: pick 6 and 7 as the two middle ones. Largest = 52 - 6 - 7 = 39. 39

Ironman - iQuanta

Ironman - iQuanta

Sorted?

AbhishekLeelaPandey

AbhishekLeelaPandey

The five distinct integers sum to 60 and their two smallest values average 4, so those two sum to 8. The only distinct positive pairs that do this are (1, 7), (2, 6) and (3, 5). To make the largest number as big as possible, the three middle values should be as small as possible, which means choosing the pair with the largest second element, (3, 5), so the next values must be at least 6 and 7. That makes the three middle values' sum at least 13, so the largest number is 60 − 8 − 13 = 39. The other pairs give smaller maximums: (2, 6) forces the middle values to be at least 7 and 8, giving 37, and (1, 7) forces them to be at least 8 and 9, giving 35. The maximum is therefore 39, achieved by the set 3, 5, 6, 7, 39.

Log in to see all 7 comments and join the discussion.