本文介绍了我想要解决这个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在矩形ABCD中给出两个坐标,你被要求计算另外两个坐标。

输入



第一个line包含四个空格分隔的整数x1,y1,x2,y2(-100≤x1,y1,x2,y2≤100),(x1≠x2和y1≠y2),其中(x1,y1)和(x2,y2) )是点D,B或B,D。

输出



以这种格式打印四个坐标(Ax,Ay)( Bx,By)(Cx,Cy)(Dx,Dy)没有引号。

Given two coordinates in a rectangle "ABCD", you are asked to calculate the other two coordinates.
Input

The first line contains four space-separated integers x1, y1, x2, y2 (-100 ≤ x1, y1, x2, y2 ≤100), (x1 ≠ x2 and y1 ≠ y2), where (x1,y1) and (x2,y2) are point D,B or B,D.
Output

Print the four coordinates in this format "(Ax,Ay)(Bx,By)(Cx,Cy)(Dx,Dy)" without the quotes.

推荐答案



这篇关于我想要解决这个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 20:06