HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Kovrov IT > problem:


2008.E. 50263 - Points

Guest
• Discussion of problem (1)

Volume problems

• 2007.H. 50273 - Two Captains
• 2007.I. 50274 - Boundary Troops
• 2007.J. 50275 - Wedding
• 2007.K. 50276 - Nice Floor
• 2008.A. 50672 - Math and Soldiers
• 2008.B. 50261 - Roads
• 2008.C. 50262 - Brackets
• 2008.D. 50279 - Bit Decoder
• 2008.E. 50263 - Points
• 2008.F. 50972 - Division
• 2008.G. 50264 - String Multiplication
• 2008.H. 50254 - Lawyers Council
• 2009.A. 50283 - Tetris 3D
• 2009.B. 50284 - Knights of the Rook
• 2009.C. 50285 - Meat store
• 2009.D. 50259 - Many-coloured roads
• 2009.E. 50266 - Kovrov

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.
Автор: Павел Кузнецов, ПГУ.

N points are on a plane. You have to find the minimal number of straight lines, so that each point would belong to at least one line. Besides, if you have to use more than one line, then all the lines should be parallel to each other.

Input
In the first line of input file an integer number N is written - number of points on a plane (1 ≤ N ≤ 250). In the next N lines points coordinates are written. All coordinates are integer numbers with absolute value not greater that 106.
Output
Write a single number - the answer to this problem.

Input 1 Output 1 Input 2 Output 2 Input 3 Output 3
3
0 0
2 0
10 0
1
4
0 0
1 0
0 1
1 1
2
4
0 0
1 0
2 1
2 3
3

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

www.contester.ru