GEOMETRY — Visit n points in some order (help)

Правка en2, от watchyour6, 2020-10-03 14:53:50

Given $$$N$$$ points in $$$2D$$$ plane with integer coordinates. Initially you are at a point $$$p1$$$ , visit all remaining $$$n-1$$$ points and come back to $$$p1$$$ . Between two points you move in a straight line joining them . Only constraint is that no two of the lines must intersect .
Constraints:
$$$3 ≤ N ≤ 1000$$$
$$$-1,000,000 ≤ x i , y i ≤ 1,000,000 $$$
Problem Link — Mission-Infoarena
Some help is appreciated as im stuck so bad.

UPD: Solved

Теги #geometry, #convex hull trick

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский watchyour6 2020-10-03 14:53:50 26 Tiny change: 'ck so bad.' -> 'ck so bad. <br>\n<br>\nUPD: Solved'
en1 Английский watchyour6 2020-10-03 12:41:32 541 Initial revision (published)