HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Geometry > problem:


50668 - Triangle

Guest
• Discussion of problem (1)

Section problems

• 50560 - Max Distance
• 50237 - Is it the same color?
• 50422 - Area and Perimeter of diffe...
• 50399 - Mobile Base Station
• 50397 - The Number of Points in a ...
• 50349 - Area of a Triangle
• 50348 - Area and Perimeter of a Rec...
• 50665 - Intersecting rectangles
• 50668 - Triangle
• 50362 - Pythagorean Numbers
• 50354 - Intersecting Rectangles
• 50660 - Triangle and the point
• 50666 - The card and envelope
• Problem 2
• 50663 - Lights
• 50667 - Intersecting Line Segments

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb. Difficulty Beta

On a plane, N points are given. No two points coincide. Find the triangle with vertices at these points, having the smallest possible perimeter.

Input
First, you read the number N - the number of points (3 ≤ N ≤ 50), and then N of pairs of real numbers defining the coordinates of the points are given.
Output
Bring out the three numbers - number of points that should be tops of triangle whose perimeter is minimal. If there are many, give any of them.

Input Output
5
0 0
3.1 0
-2 0.1
1 0
10 10
1 3 4

Для отправки решений необходимо выполнить вход.

www.contester.ru