pangfengliu / programmingtasks

programming tasks from my courses
67 stars 17 forks source link

Parallelogram #331

Open littlehug opened 5 years ago

littlehug commented 5 years ago

Task Description

You are given three points A, B, and C. Please find a point D so that ABDC becomes a parallelogram. Then find a point E so that ABCE becomes a parallelogram. Finally, find a point F so that ACBF becomes parallelogram. Report the coordinates of point D, then E, then F.

figure

Input Format

There are 6 integers in one line, indicating the x, y coordinates of A, B, and C.

Output Format

There are 6 integers in one line, indicating the x, y coordinate of D, E, and F.

Sample Input

0 0 1 0 0 1

Sample Output

1 1 -1 1 1 -1