Go: package main

import "fmt"

func main() {

	for {
		var a, b, c, d, e, f float64
		var x, y float64
		i, _ := fmt.Scanf("%f %f %f %f %f %f", &a, &b, &c, &d, &e, &f)
		if i != 6 {
			return
		}

		// x = ((e * c) - (b * f)) / ((a * e) - (b * d))
		y = ((a * f) - (d * c)) / ((a * e) - (b * d))
		x = (c - b*y) / a

		fmt.Printf("%.3f %.3f\n", x, y)
	}
}

Python: # -*- coding: utf-8 -*-

import math

while True:
  try:
    ( a, b, c, d, e, f ) = map ( float, input ( ).split ( ) )
  except EOFError: break
  x = ( c * e - b * f ) / ( a * e - b * d )
  y = ( a * f - c * d ) / ( a * e - b * d )
  print ( "%.3f %.3f" % ( round ( x * 1e3 ) / 1e3, round ( y * 1e3 ) / 1e3 ) )

Python: import sys;print("\n".join(["{:.3f}".format(int((e*c-b*f)/(a*e-b*d)*1000)/1000) + " " + "{:.3f}".format(int((-d*c+a*f)/(a*e-b*d)*1000)/1000) for x in sys.stdin for a, b, c, d, e, f in [[int(y) for y in x.split()]] ]))

Python: import sys
#from me.io import dup_file_stdin

#@dup_file_stdin
def solve():
    for line in sys.stdin:
        a,b,c,d,e,f=map(float,line.split(' '))
        print("{:.3f} {:.3f}".format((c*e-b*f)/(a*e-b*d),(c*d-a*f)/(b*d-a*e)))
solve()

Python: #!/usr/bin/env python
# -*- coding: utf-8 -*-

while True:
    try:
        a, b, c, d, e, f = map(float, input().split())
        tmp = a/d
        y = (c - tmp*f)/(b - tmp*e)
        x = (c - b*y)/a
        x = round(x)
        y = round(y)
        print('%.3f %.3f' % (x, y))
    except:
        break

Python: import sys
for line in sys.stdin:
  a,b,c,d,e,f=map(float,line.strip().split())
  y=(c*d-a*f)/(b*d-a*e)
  x=(c-b*y)/a
  print("%.3lf %.3lf" %(x,y))

Python: while True:
    try:
        a, b, c, d, e, f = map(int, input().split())
    except:
        break
    y = (c*d-f*a) / (b*d-e*a)
    x = (c - b*y) / a
    print("{:.3f} {:.3f}".format(x, y))

Python: import numpy

Python: import sys

while True:
    line = sys.stdin.readline()
    if not line:
        break
    a,b,c,d,e,f = map(int, line.rstrip().split(' '))
    x = (f - c*e/b)/(d - a*e/b)
    y = (f - d*c/a)/(e - b*d/a)
    print("{:.3f} {:.3f}".format(round(x,3),round(y,3)))

Python: import itertools
import operator

dataset = []
while True:
    try:
        dataset.append(input())
    except EOFError:
        break

for item in dataset:
    a, b, c, d, e, f = [int(i) for i in item.split()]
    e = e * (a/d)
    f = f * (a/d)

    y = (c - f)/(b-e)
    x = (c - b*y) / a 

    print("{:.3f} {:.3f}".format(x, y))

Python: while True:
    try:
        a, b, c, d, e, f = map(int, input().split())
    except:
        break
    y = (c * d - f * a) / (b * d - e * a)
    x = (c - (b * y)) / a
    print("{:.3f} {:.3f}".format(x, y))

Python: # coding: utf-8

import sys


def Round(ip, dg):  # ip????°???°?????\???dg?????§?????¨?????\????????¢??°
    ip = ip * 10**dg
    if(ip-int(ip) >= 0.5):
        return (int(ip) + 1)/10**dg
    else:
        return int(ip)/10**dg


for i in sys.stdin:
    try:
        line = [int(k) for k in i.split(" ")]
        a = line[0]
        b = line[1]
        c = line[2]
        d = line[3]
        e = line[4]
        f = line[5]
        print("{0:.03f}".format(Round((c*e-f*b)/(a*e-d*b), 3)) + " " + "{0:.03f}".format(Round((a*f-d*c)/(a*e-d*b), 3)))
    except:
        exit()

Python: import math

def my_round(x,d=0):
    p = 10 ** d
    return float(math.floor((x * p) + math.copysign(0.5, x))) / p

class Equation():
    def __init__(self, a, b, c, d, e, f):
        self.a = a
        self.b = b
        self.c = c
        self.d = d
        self.e = e
        self.f = f

    def calc(self):
        temp = (self.a * self.e - self.b * self.d)
        temp_a = (self.c * self.e - self.b * self.f)
        temp_b = (self.a * self.f - self.c * self.d)
        try:
            x = my_round(temp_a / temp, 4)
        except ZeroDivisionError:
            x = my_round(temp_a / 1.0, 4)

        try:
            y = my_round(temp_b / temp, 4)
        except ZeroDivisionError:
            y = my_round(temp_b / 1.0, 4)

        return x, y


    def print(self):
        ans = self.calc()
        print("{0:.3f} {1:.3f}".format(ans[0], ans[1]))


def main():
    data = []

    while 1:
        try:
            n = input().split()
            
            if n is None:
                break
                
            a = float(n[0])
            b = float(n[1])
            c = float(n[2])
            d = float(n[3])
            e = float(n[4])
            f = float(n[5])

            data.append(Equation(a, b, c, d, e, f))

        except EOFError:
            break

    for num in data:
        num.print()

if __name__ == "__main__":
    main()

Python: while True:
	try:
		a, b, c, d, e, f = map(int, input().split())
	except EOFError:
		break
	print(format(round((c*e-b*f)/(a*e-b*d)+0.,3), ".3f"), format(round((a*f-c*d)/(a*e-b*d)+0.,3), ".3f"), sep=" ")

Python: x,y = [0]*2,[0]*2
for i in range(2):
    k = list(map(float,input().split()))
    n = k[0]*k[4] -k[1]*k[3]
    x[i] = round((k[4]*k[2]-k[1]*k[5])/n,3)
    y[i] = round((-k[3]*k[2]+k[0]*k[5])/n,3)
    if x == -0:
        x = 0
    if y == -0:
        y = 0
for i in range(2):
    print("{0:.3f}".format(x[i]),"{0:.3f}".format(y[i]))

Python: import sys
q=[list(map(float,line.split())) for line in sys.stdin]
for i in q:
    x=(i[4]*i[2]-i[1]*i[5])/(i[0]*i[4]-i[1]*i[3])
    y=(i[0]*i[5]-i[3]*i[2])/(i[0]*i[4]-i[1]*i[3])
    print("{:.3f} {:.3f}".format(x,y))

Python: #!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys
import math

def my_round(x):
    xx = 1000*x
    f, i = math.modf(xx)
    #print(f,i)
    if f < 0.0 and f <= -0.5:
        i -= 1
    if f >= 0.0 and f >= 0.5:
        i += 1
    return i/1000 + 0

def main():
    for line in sys.stdin:
        a, b, c, d, e, f = map(float, line.split())

        det = a*e - b*d
        x = ( e*c - b*f) / det
        y = (-d*c + a*f) / det

        xr = my_round(x)
        yr = my_round(y)
        print("{:.3f} {:.3f}".format(xr, yr))

if __name__ == "__main__": main()

Python: 
import sys
import math

r = sys.stdin.readlines()

r.pop(0)

n = [[float(i) for i in (j.split())] for j in r] 
    
for l in n:
    y = (l[2]*l[3]-l[0]*l[5])/(l[1]*l[3]-l[0]*l[4])+0
    
    x = (l[2]*l[4]-l[5]*l[1])/(l[0]*l[4]-l[3]*l[1])+0
    
    print("%.3f %.3f" %(x, y))

Python: while True:
    try:
        a, b, c, d, e, f = map(float, input().split())
        x = (c*e - b*f)/(a*e - b*d)
        y = (a*f - c*d)/(a*e - b*d)
        if x == 0.0:
            x = abs(x)
        if y == 0.0:
            y = abs(y)
        print('%.3f %.3f' %(x,y))
    except:
        break

Python: # coding: utf-8
# Here your code !

import sys
import math

r = sys.stdin.readlines()

r.pop(0)

n = [[float(i) for i in (j.split())] for j in r] #n is list of each lines
    
for l in n:
    print(l)
    y = (l[2]*l[3]-l[0]*l[5])/(l[1]*l[3]-l[0]*l[4])+0
    
    x = (l[2]*l[4]-l[5]*l[1])/(l[0]*l[4]-l[3]*l[1])+0
    
    print("{:.3f} {:.3f} ".format(x,y))

Python: while True:
    try:
        a,b,c,d,e,f = map(int, input().split())
    except EOFError:
        break
    x = c/a + (f*a-c*d)*b / (e*a-d*b) / a
    y = (f*a - c*d) / (e*a - b*d)
    print('{:.3f} {:.3f}')

Python: EPS = 0.0001
while True:
    try:
        a = list(map(float, input().split()))
        dd = a[0]*a[4]-a[3]*a[1]
        d1 = a[2]*a[4]-a[5]*a[1]
        d2 = a[0]*a[5]-a[3]*a[2]
        print("{0:.3f} {1:.3f}".format(d1/dd+EPS, d2/dd+EPS))
    except EOFError:
        break

Python: while True:
    try:
        l=list(map(int, input().split()))
        x=(l[1]*l[5]-l[2]*l[4])/(l[1]*l[3]-l[0]*l[4])
        y=(l[2]-l[0]*x)/l[1]
        if x == 0: x = 0
        print( "{0:.3f} {1:.3f}".format(x,y))
    except:
        break

Python: while True:
	try:
		s=input().split()
	except:
		break
	a,b,c,d,e,f=int(s[0]),int(s[1]),int(s[2]),int(s[3]),int(s[4]),int(s[5])
	
	x=round((ce-bf)/(ae-db),3)
	y=round((cd-fa)/(bd-ea),3)
	print("%d %d",x,y)