#1068. 解二元一次方程组

解二元一次方程组

说明

算法提高&nbsp 解二元一次方程组&nbsp  
时间限制:1.0s&nbsp  &nbsp 内存限制:256.0MB
 &nbsp  &nbsp
问题描述
  给定一个二元一次方程组,形如:
  a&nbsp *&nbsp x&nbsp +&nbsp b&nbsp *&nbsp y&nbsp =&nbsp c;
  d&nbsp *&nbsp x&nbsp +&nbsp e&nbsp *&nbsp y&nbsp =&nbsp f;
  x,y代表未知数,a,&nbsp b,&nbsp c,&nbsp d,&nbsp e,&nbsp f为参数。
  求解x,y
输入格式
  输入包含六个整数:&nbsp a,&nbsp b,&nbsp c,&nbsp d,&nbsp e,&nbsp f;
输出格式
  输出为方程组的解,两个整数x,&nbsp y。
样例输入
例:
3&nbsp 7&nbsp 41&nbsp 2&nbsp 1&nbsp 9
样例输出
例:
2&nbsp 5
数据规模和约定
  0&nbsp < =&nbsp a,&nbsp b,&nbsp c,&nbsp d,&nbsp e,&nbsp f&nbsp < =&nbsp 2147483647