21957_CocircularPoints

2022-5-16 18:20| 发布者: Hocassian| 查看: 22| 评论: 0|原作者: 肇庆学院ACM合集

摘要:
C:\Users\Administrator\Downloads\2019-10-12-10-14-4-89505992677499-Problem List-采集的数据-后羿采集器.html

Pro.ID

21957

Title

Cocircular Points

Title链接

http://10.20.2.8/oj/exercise/problem?problem_id=21957

AC

0

Submit

0

Ratio

-

时间&空间限制

  • Time Limit: 2000/1000 MS (Java/Others)     Memory Limit: 65536/65536 K (Java/Others)
  • 描述

    You probably know what a set of collinear points is: a set of points such that there exists a straight line that passes through all of them. A set of cocircular points is defined in the same fashion, but instead of a straight line, we ask that there is a circle such that every point of the set lies over its perimeter.

    The International Collinear Points Centre (ICPC) has assigned you the following task: given a set of points, calculate the size of the larger subset of cocircular points.

    输入

    Each test case is given using several lines. The first line contains an integer N representing the number of points in the set (1 ≤ N ≤ 100). Each of the next N lines contains two integers X and Y representing the coordinates of a point of the set (-104X, Y ≤ 104). Within each test case, no two points have the same location.

    The last test case is followed by a line containing one zero.

    输出

    Description

    You probably know what a set of collinear points is: a set of points such that there exists a straight line that passes through all of them. A set of cocircular points is defined in the same fashion, but instead of a straight line, we ask that there is a circle such that every point of the set lies over its perimeter.

    The International Collinear Points Centre (ICPC) has assigned you the following task: given a set of points, calculate the size of the larger subset of cocircular points.

    Input

    Each test case is given using several lines. The first line contains an integer N representing the number of points in the set (1 ≤ N ≤ 100). Each of the next N lines contains two integers X and Y representing the coordinates of a point of the set (-104X, Y ≤ 104). Within each test case, no two points have the same location.

    The last test case is followed by a line containing one zero.

    Output

    For each test case output a single line with a single integer representing the number of points in one of the largest subsets of the input that are cocircular.

    Sample Input

    7
    -10 0
    0 -10
    10 0
    0 10
    -20 10
    -10 20
    -2 4
    4
    -10000 10000
    10000 10000
    10000 -10000
    -10000 -9999
    3
    -1 0
    0 0
    1 0
    0

    Sample Output

    5
    3
    2

    Source

    样例输入

    7
    -10 0
    0 -10
    10 0
    0 10
    -20 10
    -10 20
    -2 4
    4
    -10000 10000
    10000 10000
    10000 -10000
    -10000 -9999
    3
    -1 0
    0 0
    1 0
    0

    样例输出

    5
    3
    2

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部