The intersection of two lines
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Find the intersection points of two non-parallel lines.
Input
Six numbers - the coefficients A, B and C, the normal equation of two different non-parallel lines (initially for one line, then to the other). All input data are integers not exceeding modulo 10000.
Output
Two numbers - the coordinates of their intersection points with an accuracy of 2 decimal places.
Examples
Input #1
Answer #1
Submissions 2K
Acceptance rate 31%