YoussefObama's blog

By YoussefObama, 2 years ago, In English

How did people solve this problem based on the fact that

max(a_1, a_2, ..., a_n) — min(a_1, a_2, ..., a_n) = x where a_1 + a_2 + ... + a_n = x^2

how is this correct?

  • Vote: I like it
  • -4
  • Vote: I do not like it

| Write comment?
»
2 years ago, # |
  Vote: I like it +3 Vote: I do not like it

It is not coreect for all {a_i}. The problem statement is to find such {a_i}

  • »
    »
    2 years ago, # ^ |
      Vote: I like it -7 Vote: I do not like it

    yes but what if a_1 = 1/a_2 that would make the relation inversely quadratic

    • »
      »
      »
      2 years ago, # ^ |
        Vote: I like it +3 Vote: I do not like it

      How. a_i are positive integers. How a_1 = 1/a_2? Alse read the official solution

»
2 years ago, # |
  Vote: I like it 0 Vote: I do not like it

x = max(array) $$$-$$$ min(array) = sqrt(sum)
Then x^2 = sqrt(sum)^2 = sum