Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

I need help in solving the following problem

Правка en1, от Hando, 2023-03-07 02:32:23

It is an interactive problem.

We have an array $$$a$$$ that we don't know (**and cannot modify**) and we are given an array $$$b$$$ of the same size as $$$a$$$. (length of $$$a$$$ is less then $$$4\ 000$$$).

We need to arange the elements in the array $$$b$$$ such that the cross product of arrays $$$a$$$ and $$$b$$$ is maximal. ($$$a_1 * b_1 + ... + a_n * b_n$$$ is maximal).

The interaction consist in giving the arary $$$b$$$ and reciveing the corss product with $$$a$$$ every time. How can we find a rearangement of array $$$b$$$ such that

Теги need help, interactive problem

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en9 Английский Hando 2023-03-07 10:56:45 24 Tiny change: ' to $b[0]$, after sorting them ofc (but I th' -> ' to $b[0]$ (but I th'
en8 Английский Hando 2023-03-07 10:52:08 544 Tiny change: ' positive value (an' -> ' positive ($ >\ 0$) value (an'
en7 Английский Hando 2023-03-07 10:11:01 61
en6 Английский Hando 2023-03-07 02:45:14 2 Tiny change: 'eing the corss product' -> 'eing the cross product'
en5 Английский Hando 2023-03-07 02:44:22 2 Tiny change: 'ing the arary $b$ and ' -> 'ing the array $b$ and '
en4 Английский Hando 2023-03-07 02:38:31 56 (published)
en3 Английский Hando 2023-03-07 02:34:07 1 Tiny change: '000$ tries' -> '000$ tries.'
en2 Английский Hando 2023-03-07 02:33:57 24 Tiny change: ' array $b$ such that ' -> ' array $b$, in less than $6000$ tries'
en1 Английский Hando 2023-03-07 02:32:23 552 Initial revision (saved to drafts)