1042: 解二元一次方程组

Memory Limit:512 MB Time Limit:1000.000 S
Judge Style:Text Compare Creator:
Submit:34 Solved:17

Description


  给定一个二元一次方程组,形如:
  a * x + b * y = c;
  d * x + e * y = f;
  x,y代表未知数,a, b, c, d, e, f为参数。
  求解x,y

Input

输入描述:
  输入包含六个整数: a, b, c, d, e, f;
输入样例:
例:
3 7 41 2 1 9

Output


输出描述:
  输出为方程组的解,两个整数x, y。
输出样例:
例:
2 5

Sample Input Copy

参考上文 

Sample Output Copy

参考上文

HINT

HINT:时间限制:1.0s 内存限制:256.0MB
  0 <= a, b, c, d, e, f <= 2147483647

Source/Category