#abc246a. A - Four Points
A - Four Points
Score : points
问题描述
在 平面上存在一个矩形。该矩形的每一条边都平行于 轴或 轴,且其面积不为零。
已知该矩形四个顶点中的三个坐标 , 和 ,请找出另一个顶点的坐标。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
There is a rectangle in the -plane. Each edge of this rectangle is parallel to the - or -axis, and its area is not zero.
Given the coordinates of three of the four vertices of this rectangle, , , and , find the coordinates of the other vertex.
Constraints
- There uniquely exists a rectangle with all of , , as vertices, edges parallel to the - or -axis, and a non-zero area.
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the sought coordinates separated by a space in the following format:
Sample Input 1
-1 -1
-1 2
3 2
Sample Output 1
3 -1
The other vertex of the rectangle with vertices is .
Sample Input 2
-60 -40
-60 -80
-20 -80
Sample Output 2
-20 -40
update @ 2024/3/10 10:32:51