Symmetric Point

2.3

9 votes
Easy
Problem

Given two points A and B, output the symmetric point of point A about B.

Input Format

The first line contains an integer T representing the number of testcases Each test case is a line containing four space separated integers Px Py Qx Qy representing the (x,y) coordinates of A and B.

Output Format

For each test case output x and y coordinates of the symmetric point (each point in a new line).

Constraints

1⩽T⩽15

−100⩽x,y⩽100

Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?