Pororo789's blog

By Pororo789, history, 5 years ago, In English
  • Vote: I like it
  • 0
  • Vote: I do not like it

By Pororo789, history, 5 years ago, translation, In English

how to solve this problem:

given a n — numbers of players and their height h_i. You need to split to k teams that the incompatibility is minimal. Incompatibility is the sum of the mx(maximum height of team player)-h_i(height of other player)

n <= 10^5

k <= min(n,20)

h_i <= 10^6

Full text and comments »

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