АВТ
Язык:

Дистанционный практикум по программированию

Задачи On-line статус ЧаВо Турниры
Для авторов:
 
Здравствуйте, Гость! Войдите с паролем или зарегистрируйтесь.

612. E - Points

Ограничение времени: 2 секунды
Ограничение памяти:65535КБ
Баллы:10
Статистика Послать на проверку Задачу добавил Administrator

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


Статистика Послать на проверку Автор/источник:
Задачи с соревнований / Ковров ИТ-фестиваль / КИТ-2008 /
611. D - Bit Decoder 612. 613. F - Division 614. G - String Multiplication 615. H - Lawyers Council
 
время генерации 0.421 сек.
© Copyright ВоГТУ, АВТ, Носов Д.А.