TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

You are given N points on a 2-d plane.All Points are Distinct.
You are to find the maximum number of points which lie on the circumference of same circle.

Input Format

First line contains t - the number of test cases. For each test case, the first line contains N - the number of points. Then follow N lines containing 2 floating point numbers - x,y denoting the co-ordinate of the points.


t <= 10, 1 <= N <= 400

Absolute value of all Co-ordinate points will be less than 104.

Output Format

For each test case, print exactly one line containing the desired answer.

Sample Input 1

1
7
0 0
5 0
0 5
-5 0
0 -5
3 4
4 3

Sample Output 1

6

Hints

Problem Source

Migrated from old NTUJ.

CodeCraft 2010

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 60000 65536 200