Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|

Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |

Language: Count Squares
Description Given a set of points with integer coordinates y, _{i}i = 1...N, your program must find all the squares having each of four vertices in one of these points.Input Input file contains integer y._{i}
-10 y ≤ 10_{i}^{4}, 1 ≤ N ≤ 2000. All points in the input are different. Output Output file must contain a single integer — number of squares found. Sample Input
Sample Output
Hint Bold texts appearing in the sample sections are informative and do not form part of the actual data. Source Northeastern Europe 2005, Far-Eastern Subregion |

[Submit] [Go Back] [Status] [Discuss]

All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di

Any problem, Please Contact Administrator