#P7455. [2017年杭电多校]Regular polygon

    ID: 7468 传统题 1000ms 256MiB 尝试: 2 已通过: 1 难度: 5 上传者: 标签>CF1800普及+/提高-格点多边形点积叉积暴力枚举重复元素除重

[2017年杭电多校]Regular polygon

Regular polygon

Problem Description

On a two-dimensional plane, give you n integer points. Your task is to figure out how many different regular polygon these points can make.

Input

The input file consists of several test cases. Each case the first line is a numbers N (N <= 500). The next N lines ,each line contain two number Xi and Yi(-100 <= xi,yi <= 100), means the points¡¯ position.(the data assures no two points share the same position.)

Output

For each case, output a number means how many different regular polygon these points can make.

Sample Input

4

0 0

0 1

1 0

1 1

6

0 0

0 1

1 0

1 1

2 0

2 1

Sample Output

1

2

Source

2017 Multi-University Training Contest - Team 2

https://acm.hdu.edu.cn/showproblem.php?pid=6055