The Square Counter
We at juspay like to play with Maths. One of our favourite topics is coordinate geometry. We have been given n coordinates in a xy plane and we have to find the number of squares that are possible to be formed parallel to the axes. Can you help juspay in solving the problem
NOTE
it is guaranteed that each point is distinct
Input
The first line tells you the number of points ten
Next lines tell you the x and y coordinates of the points
Output
eturns a single output the number of squares that can be formed with the given n points
Constraints:
1<=n<=10000
0<=x<=100000
Time= 2 sec per est
Answers
Answered by
0
Answer:
We live in a world defined by the pace of change, and whilst the velocity of that change has not always impacted upon our political institut
Explanation:
We live in a world defined by the pace of change, and whilst the velocity of that change has not always impacted upon our political institutWe live in a world defined by the pace of change, and whilst the velocity of that change has not always impacted upon our political institutWe live in a world defined by the pace of change, and whilst the velocity of that change has not always impacted upon our political institut
Similar questions
Computer Science,
5 months ago
Math,
11 months ago
Economy,
11 months ago
Social Sciences,
1 year ago