I'm struggling since 2 days trying to solve this problem Thank you for your help in advance
| № | Пользователь | Рейтинг |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | Kevin114514 | 3657 |
| 3 | jiangly | 3638 |
| 4 | turmax | 3442 |
| 5 | tourist | 3380 |
| 6 | Um_nik | 3353 |
| 7 | strapple | 3350 |
| 8 | squareOf105 | 3346 |
| 9 | heuristica | 3322 |
| 10 | maroonrk | 3310 |
| Страны | Города | Организации | Всё → |
| № | Пользователь | Вклад |
|---|---|---|
| 1 | Qingyu | 158 |
| 2 | nik_exists | 151 |
| 3 | maspy | 150 |
| 4 | AmShZ | 144 |
| 5 | Um_nik | 143 |
| 6 | Errichto | 139 |
| 7 | adamant | 137 |
| 8 | BledDest | 135 |
| 9 | maroonrk | 133 |
| 10 | qwexd | 130 |
I'm struggling since 2 days trying to solve this problem Thank you for your help in advance
| Название |
|---|



It's can be solved by Back-tracking, Make Frequency array try get point then remove it's distances with other points you already choose from frequency array and repeat till you find valid answer
Could you explain me more deeper Hiasat? Please
There is an important observation which is First Point is 0 and Last Point is maximum among the distances.
Let call last point as LAST
What do after that is simply back-track which is call function and find maximum remaining distance let it call it MX
Now try Place point at (Last-MX) or at MX , there is 2 possible point for each step as it's either distance from last point or first point