Cramer's Formula
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Solve the system of two linear equations with two variables using the Kramer's rule.
The system of equations given in the example has the form:
It is known that system has a unique solution.
Input
The first line contains the coefficients of the first equation, and the second line contains the coefficients of the second equation. All numbers are separated with one space and do not exceed 100 by the absolute value.
Output
Print the first root in the first line and the second root in the second line with accuracy 0.001.
Examples
Input #1
Answer #1
Submissions 10K
Acceptance rate 35%