COCI 2007/2008, Contest #1
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 1000.
Output the coordinates of the fourth vertex of the rectangle.
5 5 5 7 7 5
30 20 10 10 10 20
Point Value: 3
Time Limit: 1.00s
Memory Limit: 32M
Added: Jul 30, 2013
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3