A1321.[COCI-2007_2008-contest1]#1 CETVRTA

普及/提高-

COCI

通过率:0%

时间限制:1.00s

内存限制:128MB

题目描述

Mirko needs to choose four points in the plane so that they form a rectangle with sides parallel to the axes. He has already chosen three points and is confident that he hasn't made a mistake, but is having trouble locating the last point. Help him.

输入格式

Each of the three points already chosen will be given on a separate line. All coordinates will be integers between 1 and 100
0.

输出格式

Output the coordinates of the fourth vertex of the rectangle.

输入输出样例

  • 输入#1

    5 5 
    5 7 
    7 5 

    输出#1

    7 7
  • 输入#2

    30 20 
    10 10 
    10 20

    输出#2

    30 10

说明/提示

首页