Problem K. Regular polygon

时间限制 1000 ms   内存限制 64 MB

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.
 

输入数据

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.)
 

输出数据

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

样例输入

复制
4
0 0
0 1
1 0
1 1
6
0 0
0 1
1 0
1 1
2 0
2 1

样例输出

复制
1
2

提交

请先 登录

© 2025 FAQs Contact About