Construct square 2
Easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Construct a square given two points, which are opposite vertices of the square.
Input
The program receives the coordinates of two opposite vertices of the square as input. First, the coordinates of the first vertex are provided, followed by the coordinates of the second vertex. Each coordinate is a pair of integers, with absolute values not exceeding 10^4.
Output
Output 8 real numbers, representing the coordinates of all four vertices of the square in traversal order.
Examples
Input #1
Answer #1
Submissions 225
Acceptance rate 48%