Problem
Input format
The first line contains `n`. The next `n` lines each contain the coordinates `x y` of one point, separated by a space. - `2 <= n <= 200` - `-1000 <= x, y <= 1000` - it is guaranteed that no two points are identical
Output format
The first two lines contain the two points, in the format `x y`. The third line contains the square of the Euclidean distance between them.
Example
4 0 0 3 4 1 1 10 10
0 0 1 1 2
Stuck?
Use the Get Hint button in the action bar to reveal a guided hint.
💬 Discussion
Loading...No comments yet. Be the first to start the discussion!
Sample cases (from the problem)
Sample Case 1
4 0 0 3 4 1 1 10 10
0 0 1 1 2
Solve it your way first
Community solutions unlock after you submit a passing solution. Don't peek.
Ready to solve this challenge?
Create a free account to write code, submit solutions, and track your progress.