#include #include using namespace std; int main() { int a,b,c,d,e,f; cin >> a >> b >> c >> d >> e >> f; double y = (c*d - a*f) / (b*d - e*a); // xの係数をそろえ、yの値を求める double x = (c - (b*y))/a; // 元の式にyの値を代入してxの値を求める cout << fixed << setprecision(5) << x << " " << y << endl; // 出力 return 0; }