← 返回 meta 的题目列表Rectangle Formations in a 2D Plane
类型:online_judge
Assume several points are given in a 2D plane. Find all combinations of points that can form rectangles. Input is a set of points, each represented by two space-separated integer coordinates. Output all valid point combinations, one per line, sorted by x, y coordinates.
Example
Input
1 1
2 1
1 2
2 2