Point of heights intersection
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Find the intersection point of heights for given triangle.
Input
The coordinates of the three vertices of triangle (first the coordinates of the first vertex, then the second, then the third). Coordinates are the pair of integers not exceeding 10^4
in absolute value.
Output
Print two numbers - the coordinates of intersection point for triangle heights with an accuracy of at least 6 decimal digits.
Examples
Input #1
Answer #1
Submissions 547
Acceptance rate 23%