HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Problems from Olympiads.ru > problem:


159. 50668 - Triangle

Guest
• Discussion of problem (1)

Volume problems

• 107a. 50240 - The numbers that are...
• 107b. 50242 - Numbers whose sum...
• 113. 50241 - Greatest common divisor
• 127b. 50730 - The largest product
• 127c. 50731 - The largest product (2)
• 133. 50239 - Eating cheese
• 138. 50732 - Sorting
• 147. 50251 - Symmetric matrix
• 159. 50668 - Triangle
• 206. 50252 - Birthday
• 213. 50769 - Arithmetic expression
• 217. 50253 - Timer
• 234. 50249 - Ladders
• 235. 50250 - The Knight
• 240. 50247 - Missing numbers
• 272. 50707 - Rebus
• 275. 50691 - The traveling salesma...

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