Problem:


Simultaneous Equation

Write a program which solve a simultaneous equation:

 ax + by = c

 dx + ey = f

The program should print x and y for given a, b, c, d, e and f (-1,000 ≤ a, b, c, d, e, f ≤ 1,000). You can suppose that given equation has a unique solution.

Input

The input consists of several data sets, 1 line for each data set. In a data set, there will be a, b, c, d, e, f separated by a single space. The input terminates with EOF.

Output

For each data set, print x and y separated by a single space. Print the solution to three places of decimals. Round off the solution to three decimal places.

Sample Input 1

1 2 3 4 5 6
2 -1 -2 -1 -1 -5

Output for the Sample Input 1

-1.000 2.000
1.000 4.000

Sample Input 2

2 -1 -3 1 -1 -3
2 -1 -3 -9 9 27

Output for the Sample Input 2

0.000 3.000
0.000 3.000



Sample input:
1 2 3 4 5 6
2 -1 -2 -1 -1 -5


Sample output:
-1.000 2.000
1.000 4.000

Submission status: Wrong Answer

Solution code:
print("hello")

Submission status: Wrong Answer

Solution code:
while True:
  try:
    a, b, c, d, e, f = map(int, input().split(" "))
    
    det = a * d - b * c
    x = det * (d * e - b * f)
    y = det * ((-c) * e + a * e)

    print(str(x), str(y))

  except:
    break

Submission status: Wrong Answer

Solution code:
while True:
  try:
    a, b, c, d, e, f = map(int, input().split(" "))
    
    det = a * d - b * c
    x = det * (d * e - b * f)
    y = det * ((-c) * e + a * f)

    print(str(x), str(y))

  except:
    break

Submission status: Wrong Answer

Solution code:
while True:
  try:
    a, b, c, d, e, f = map(int, input().split(" "))
    
    det = 1 / (a * d - b * c)
    x = det * (d * e - b * f)
    y = det * ((-c) * e + a * e)

    print(str(x), str(y))

  except:
    break

Submission status: Wrong Answer

Solution code:
while True:
  try:
    a, b, c, d, e, f = map(int, input().split(" "))
    
    det = 1 / (a * d - b * c)
    x = det * (d * e - b * f)
    y = det * ((-c) * e + a * f)

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

  except:
    break

Submission status: Wrong Answer

Solution code:
while True:
    try:
        a, b, c, d, e, f = map(int, input().split(" "))

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

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

    except:
        break

Submission status: Wrong Answer

Solution code:
while True:
    try:
        a, b, c, d, e, f = map(int, input().split(" "))

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

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

    except:
        break

Submission status: Wrong Answer

Solution code:
while True:
  try:
    a, b, c, d, e, f = map(int, input().split(" "))
  except:
    break

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

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

Submission status: Wrong Answer

Solution code:
(a,b,c,d,e,f)  =  map(int,input().split())
g = (a * e)  - (b * d)
ans1= "{0:.3f}".format((( e * c) + ( -b * f)) / g)
ans2= "{0:.3f}".format(((-d * c) + (  a * f)) / g)
print (ans1,ans2)

Submission status: Wrong Answer

Solution code:
(a,b,c,d,e,f)  =  map(int,input().split())
g = (a * e)  - (b * d)
ans1= "{0:.3f}".format((( e * c) + ( -b * f)) / g)
ans2= "{0:.3f}".format(((-d * c) + (  a * f)) / g)
(a,b,c,d,e,f)  =  map(int,input().split())
g = (a * e)  - (b * d)
ans3= "{0:.3f}".format((( e * c) + ( -b * f)) / g)
ans4= "{0:.3f}".format(((-d * c) + (  a * f)) / g)
print (ans1,ans2)
print (ans3,ans4)

Submission status: Wrong Answer

Solution code:
(a,b,c,d,e,f)  =  map(int,input().split())
g = (a * e)  - (b * d)
ans1= "{0:.3f}".format((( e * c) + ( -b * f)) / g + 0)
ans2= "{0:.3f}".format(((-d * c) + (  a * f)) / g + 0)
(a,b,c,d,e,f)  =  map(int,input().split())
g = (a * e)  - (b * d)
ans3= "{0:.3f}".format((( e * c) + ( -b * f)) / g + 0)
ans4= "{0:.3f}".format(((-d * c) + (  a * f)) / g + 0)
print (ans1,ans2)
print (ans3,ans4)

Submission status: Wrong Answer

Solution code:
while 1:
    try:
        a,b,c,d,e,f = (map(int,input().split()))

        n = d/a
        a = n*a
        b = n*b
        c = n*c

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

        print("{0:.3f} {1:.3f}".format(x, y))
    except:
        break

Submission status: Wrong Answer

Solution code:
while True:
    try:
        a,b,c,d,e,f = (map(int,input().split()))

        n = d/a
        a = n*a
        b = n*b
        c = n*c

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

        print("{0:.3f} {1:.3f}".format(x, y))
    except:
        break

Submission status: Wrong Answer

Solution code:
while True:
    try:
        a,b,c,d,e,f = list(map(float, input().split()))

        n = d/a
        a = n*a
        b = n*b
        c = n*c

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

        print("{0:.3f} {1:.3f}".format(x, y))
    except:
        break

Submission status: Wrong Answer

Solution code:
while True:
    try:
        a,b,c,d,e,f = map(int,input().split())

        n = d/a
        a = n*a
        b = n*b
        c = n*c

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

        print("{0:.3f} {1:.3f}".format(x, y))
    except:
        break

Submission status: Wrong Answer

Solution code:
def equation(a,b,c,d,e,f,x):
    buff = a*e-b*d
    buff_a = a

    a = e/buff
    b = -b/buff
    d = -d/buff
    e = buff_a/buff

    x.append((a*c)+(b*f))
    x.append((d*c)+(e*f))

count = 0
a = []
b = []
c = []
d = []
e = []
f = []

while True:
    try:
        buff = input().split()
        a.append(float(buff[0]))
        b.append(float(buff[1]))
        c.append(float(buff[2]))  
        d.append(float(buff[3]))
        e.append(float(buff[4]))
        f.append(float(buff[5]))
        count += 1
    except:
        break

for i in range(count):
    ans = []

    equation(a[i],b[i],c[i],d[i],e[i],f[i],ans)
    print('{:.4f}'.format(ans[0]),'{:.4f}'.format(ans[1]))

Submission status: Wrong Answer

Solution code:
while True:
    try:
        a,b,c,d,e,f=[int(i) for i in input().split()]
        x=(c*e-f*b)/(a*e-b*d)
        y=(a*f-d*c)/(a*e-b*d)
        print("{:.3f} {:.3f}".format(x,y))
    except:
        break

Submission status: Wrong Answer

Solution code:
__author__ = 'bisuk'

while True:
    try:
        a, b, c, d, e, f = map(int, input().strip("\n").split(" "))
        # print(a, b, c, d, e, f)
        z = a * e - b * d
        if z == 0:
            break
        x = (c * e - b * f) / z
        y = (f * a - c * d) / z
        #print(str(x) + " " + str(y))
        print("{0:.3f} {1:.3f}".format(x, y))

    except EOFError:
        break  # escape from while loop

Submission status: Wrong Answer

Solution code:
__author__ = 'bisuk'

while True:
    try:
        a, b, c, d, e, f = map(int, input().strip("\n").split(" "))
        # print(a, b, c, d, e, f)
        z = a * e - b * d
        if z == 0:
            break
        x = (c * e - b * f)
        y = (f * a - c * d)
        #print("1st: {0:.3f} {1:.3f} {2:.3f}".format(x, y, z))

        # 0/0.0->False hoka->True
        """if x:
            # x != 0, 0.0 (True)
            x = x / z
        if y:
            y = y / z
        """
        x /= z
        y /= z
        # zero toshite atsukau
        if -0.0004 < x < 0.0004:
            x = abs(x)
        if -0.0004 < y < 0.0004:
            y = abs(y)
        #print(str(x) + " " + str(y) + " " + str(z))
        print("{0:.3f} {1:.3f} {2:.3f}".format(x, y, z))

    except EOFError:
        break  # escape from while loop

Submission status: Wrong Answer

Solution code:
while True:
	try:
		[a, b, c, d, e, f] = map(int, raw_input().split())
		i = d/a
		j = i * b - e
		k = i * c - f
		y = k/j
		x = c - b * y
		print "%.3f %.3f" % (x, y)
	except (EOFError):
		break;

Submission status: Wrong Answer

Solution code:
while True:
	try:
		[a, b, c, d, e, f] = map(float, raw_input().split())
		i = d/a
		j = i * b - e
		k = i * c - f
		print i, j, k
		y = float(k/j)
		x = float((c - b * y)/a)
		print x, y
		print "%.3f %.3f" % (x, y)
	except (EOFError):
		break;

Submission status: Wrong Answer

Solution code:
import sys 

while 1:
	try :
		a,b,c,d,e,f = map(float,raw_input().split())
		det = a * e - b * d
		x = (c*e - b*f) / det + 0.0
		y = (a*f - c*d) / det + 0.0
		print "%f %f" % (x,y)
	 
	except EOFError :
		break

Submission status: Wrong Answer

Solution code:
import sys 

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while True:
    try:
        [a,b,c,d,e,f] = map(float,raw_input().split(' '))
        if a == 0.0:
            if b != 0.0:
                y = c / b
                x = 0.0
            else:
                y = 0
                x = 0
        elif b == 0.0:
            if a != 0.0:
                x = c / a
                y = 0
        elif d == 0.0:
            if e != 0.0:
                y = f / e
                x = 0
            else:
                y = 0
                x = 0
        elif e == 0.0:
            if d != 0.0:
                x = f / d
                y = 0
            else:
                x = 0
                y = 0
        else:
            y = (c / a - f / d) / (b/a - e / d)
            x = (c - b * y) / d
        
        print "%0.3f %0.3f" % (x,y)
    except (EOFError):
        break

Submission status: Wrong Answer

Solution code:
while True:
    try:
        [a,b,c,d,e,f] = map(float,raw_input().split(' '))
        if a == 0.0:
            if b != 0.0:
                y = c / b
                x = 0.0
            else:
                y = 0
                x = 0
        elif b == 0.0:
            if a != 0.0:
                x = c / a
                y = 0
            else:
                y = 0
                x = 0
        elif d == 0.0:
            if e != 0.0:
                y = f / e
                x = 0
            else:
                y = 0
                x = 0
        elif e == 0.0:
            if d != 0.0:
                x = f / d
                y = 0
            else:
                x = 0
                y = 0
        else:
            y = (c / a - f / d) / (b/a - e / d)
            x = (c - b * y) / d
        
        print "%0.3f %0.3f" % (x,y)
    except (EOFError):
        break

Submission status: Wrong Answer

Solution code:
while True:
    try:
        [a,b,c,d,e,f] = map(float,raw_input().split(' '))
        if a == 0.0:
            if b != 0.0:
                y = c / b
                x = 0.0
            else:
                y = 0
                x = 0
        elif b == 0.0:
            if a != 0.0:
                x = c / a
                y = 0
            else:
                y = 0
                x = 0
        elif d == 0.0:
            if e != 0.0:
                y = f / e
                x = 0
            else:
                y = 0
                x = 0
        elif e == 0.0:
            if d != 0.0:
                x = f / d
                y = 0
            else:
                x = 0
                y = 0
        else:
            y = (c / a - f / d) / (b/a - e / d)
            x = (c - b * y) / d

        if abs(x - 0.0) == 0.0:
            x = 0
        if abs(y - 0.0) == 0.0:
            y = 0
            
        print "%0.3f %0.3f" % (x,y)

    except (EOFError):
        break

Submission status: Wrong Answer

Solution code:
while True:
    try:
        [a,b,c,d,e,f] = map(float,raw_input().split(' '))
        if a == 0.0:
            if b != 0.0:
                y = c / b
                x = (f - e * y) / d
        elif b == 0.0:
            if a != 0.0:
                x = c / a
                y = (f - d * x) / e
        elif d == 0.0:
            if e != 0.0:
                y = f / e
                x = (c - b * y) / a
        elif e == 0.0:
            if d != 0.0:
                x = f / d
                y = (c - a * x) / b
        else:
            y = (c / a - f / d) / (b/a - e / d)
            x = (c - b * y) / d

        if abs(x - 0.0) == 0.0:
            x = 0
        if abs(y - 0.0) == 0.0:
            y = 0
            
        print "%0.3f %0.3f" % (x,y)

    except (EOFError):
        break

Submission status: Wrong Answer

Solution code:
import sys

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

    x = (b * f - c * e)/(a * e - b * d)
    y = (a * f - c * d)/(a * e - b * d)
    print '%f %f' % (x, y)

Submission status: Wrong Answer

Solution code:
import sys
  
for line in sys.stdin:
    a, b, c, d, e, f = map(float, line.split())
  
    x = (c * e - b * f)/(a * e - b * d)
    y = (a * f - c * d)/(a * e - b * d)
    print '%f %f' % (x, y)

Submission status: Wrong Answer

Solution code:
import sys

for line in sys.stdin:
    a, b, c, d, e, f = map(float, line.split())
    
    x = round((c*e-b*f) / (a*e-b*d), 3)
    y = round((c*d-a*f) / (b*d-a*e), 3)

    print '%f %f' % (x, y)

Submission status: Wrong Answer

Solution code:
import math
import itertools

while 1:
    try:
        a, b, c, d, e, f = map(int, input().split())
        print('{0:.3f} {1:.3f}'.format((e*c-b*f)/(a*e-b*d), (-d*c+a*f)/(a*e-b*d)))
    except:
        break

Submission status: Wrong Answer

Solution code:
def test(a, b, c, d, e, f):
	pass


def check():
	while True:
		try:
			sides = map(int, raw_input().split())	
			print sides
		except Exception, e:
			break
		
		



if __name__ == "__main__":
	check()
	# print test(1, 2, 3, 4, 5, 5)

Submission status: Wrong Answer

Solution code:
def test(a, b, c, d, e, f):
	x = (c*e - b*f)/(a*e - b*d)
	y = (c*d - a*f)/(b*d - a*e)
	return str(x) +" "+ str(y)


def check():
	while True:
		try:
			params = map(int, raw_input().split())	
			print test(params[0], params[1], params[2], params[3], params[4], params[5])
		except Exception, e:
			break
		
		



if __name__ == "__main__":
	# check()
	print test(1, 2, 3, 4, 5, 6)

Submission status: Wrong Answer

Solution code:
def test(a, b, c, d, e, f):
	x = (c*e - b*f)/(a*e - b*d)
	y = (c*d - a*f)/(b*d - a*e)
	return str(x) +" "+ str(y)


def check():
	while True:
		try:
			params = map(int, raw_input().split())	
			print test(params[0], params[1], params[2], params[3], params[4], params[5])
		except Exception, e:
			break
		
		



if __name__ == "__main__":
	check()
	# print test(1, 2, 3, 4, 5, 6)

Submission status: Wrong Answer

Solution code:
def test(a, b, c, d, e, f):
	x = (c*e - b*f)/(a*e - b*d)
	y = (c*d - a*f)/(b*d - a*e)
	return "%.3f %.3f" % (x, y)


def check():
	while True:
		try:
			params = map(int, raw_input().split())	
			print test(params[0], params[1], params[2], params[3], params[4], params[5])
		except Exception, e:
			break
		
		



if __name__ == "__main__":
	check()
	# print test(1, 2, 3, 4, 5, 6)

Submission status: Wrong Answer

Solution code:
def test(a, b, c, d, e, f):
    x = (c*e - b*f)/(a*e - b*d)
    y = (c*d - a*f)/(b*d - a*e)
    return "%.3f %.3f" % (x, y)
 
 
def check():
    while True:
        try:
            params = map(int, raw_input().split())  
            print test(params[0], params[1], params[2], params[3], params[4], params[5])
        except Exception, e:
            break
         
         
 
 
 
if __name__ == "__main__":
    check()

Submission status: Wrong Answer

Solution code:
# coding: utf8

import sys

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

    x = round(1.0 * (b*f - e*c) / (b*d - a*e), 3)
    y = round(1.0 * (c*d - a*f) / (b*d - a*e), 3)

    print x, y

Submission status: Wrong Answer

Solution code:
import sys

for line in sys.stdin.readlines():
    a, b, c, d, e, f  = map(int, line.strip().split())
    x = (e*c - b*f)/(a*e - b*d)
    y = (c - a*x)/b
    print x,
    print y

Submission status: Wrong Answer

Solution code:
import sys

for line in sys.stdin.readlines():
    a, b, c, d, e, f  = map(float, line.strip().split())
    x = (e*c - b*f)/(a*e - b*d)
    y = (c - a*x)/b
    print x,
    print y

Submission status: Wrong Answer

Solution code:
import sys

for line in sys.stdin.readlines():
    a, b, c, d, e, f  = map(int, line.strip().split())
    x = (e*c - b*f)/(a*e - b*d)
    y = (c - a*x)/b
    print "{0:.3f}".format(x),
    print "{0:.3f}".format(y)

Submission status: Wrong Answer

Solution code:
import sys

for line in sys.stdin.readlines():
    a, b, c, d, e, f  = map(float, line.strip().split())
    x = (e*c - b*f)/(a*e - b*d)
    y = (c - a*x)/b
    print "{0:.3f}".format(x),
    print "{0:.3f}".format(y)

Submission status: Wrong Answer

Solution code:
__author__ = 'hayato.osanai'
import sys

for idx, line in enumerate(sys.stdin):
    print('%s value' % line)

Submission status: Wrong Answer

Solution code:
# coding: utf8

import sys

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

    x = round(1.0 * (c*e-b*f)/(a*e-b*d), 3)
    y = round(1.0 * (c*d-a*f)/(b*d-a*e), 3)
    
    print x, y

Submission status: Wrong Answer

Solution code:
while True:
	try:
		a, b, c, d, e, f = map(int, raw_input().split())
		D = a*e - b*d
		Dx = c*e - b*f
		Dy = a*f - c*d
		print("%.3f %.3f" % (Dx/D, Dy/D))
	except EOFError:
		break

Submission status: Wrong Answer

Solution code:
while True:
	try:
		a, b, c, d, e, f = map(int, raw_input().split())
		D = a*e - b*d
		Dx = c*e - b*f
		Dy = a*f - c*d
		print("%.3f %.3f" % (Dx/D + 0, Dy/D + 0))
	except EOFError:
		break

Submission status: Wrong Answer

Solution code:
from __future__ import division
while True:
	try:
		a, b, c, d, e, f = map(int, raw_input().split())
		D = a*e - b*d
		Dx = c*e - b*f
		Dy = a*f - c*d
		print("%.3f %.3f" % (Dx/D, Dy/D))
	except EOFError:
		break

Submission status: Wrong Answer

Solution code:
while True:
    try:
        a,b,c,d,e,f = map(int, raw_input().split())
        
        x = float((c*e-b*f)/(a*e-b*d))
        y = float((-d*c+a*f)/(a*e-b*d))
        
        print '%.3f %.3f' %(round(x,3), round(y,3))
        
    except EOFError:
        break

Submission status: Wrong Answer

Solution code:
while True:
    try:
        a,b,c,d,e,f = map(int, raw_input().split())
        
        x = float(c*e-b*f)/(a*e-b*d)
        y = float(-d*c+a*f)/(a*e-b*d)
        print '%.3f %.3f' %(round(x,3), round(y,3))
        
    except EOFError:
        break

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
import sys


def Print(array):
    for r in range(len(array)):
        print(array[r])
    print()


def Gauss(array):
    for r in range(len(array)):
        array[r].append(r)

    for r in range(len(array)):
        array.sort(key=lambda x: x[r], reverse=True)
        div = array[r][r]
        for c in range(r, len(array) + 1):
            array[r][c] /= div
        for r2 in range(r + 1, len(array)):
            head = array[r2][r]
            for c in range(r, len(array) + 1):
                array[r2][c] -= head * array[r][c]

    result = [0] * len(array)
    for r in range(len(array) - 1, -1, -1):
        result[r] = array[r][
            len(array)] - sum([result[x] * array[r][x] for x in range(r + 1, len(array))])
    return result


for line in sys.stdin:
    [a, b, c, d, e, f] = [int(x) for x in line.split()]
    result = Gauss([[a, b, c], [d, e, f]])
    for i in range(len(result) - 1):
        print("{0:.3f}".format(result[i]), end=" ")
    print("{0:.3f}".format(result[-1]))

Submission status: Wrong Answer

Solution code:
while True:
    try:
        a,b,c,d,e,f = map(int,raw_input().split())
        x = 0.; y = 0.
        delta = abs(a*e-b*d)
        x = float((e*c-b*f)/delta)
        y = float((a*f-d*c)/delta)
    
        print "%.3f %.3f" % (x,y)
    except EOFError:
        break

Submission status: Wrong Answer

Solution code:
while True:
    try:
        a,b,c,d,e,f = map(int,raw_input().split())
        x = 0.; y = 0.
        delta = abs(a*e-b*d)
        x = float((e*c-b*f)/delta)
        y = float((a*f-d*c)/delta)
        print str('%.3f' % x) + " " + str('%.3f' % y)
        #print "%.3f %.3f" % (x,y)
    except EOFError:
        break

Submission status: Wrong Answer

Solution code:
while True:
    try:
        a,b,c,d,e,f = map(int,raw_input().split())
        x = 0.; y = 0.
        delta = abs(a*e-b*d)
        x = float((e*c-b*f)/delta)
        y = float((a*f-d*c)/delta)
        print str('%.3f' % x) + " " + str('%.3f' % y)
        #print "%.3f %.3f" % (x,y)
    except:
        break

Submission status: Wrong Answer

Solution code:
while True:
    try:
        a,b,c,d,e,f = map(float,raw_input().split())
        x = 0.; y = 0.
        delta = abs(a*e-b*d)
        x = (e*c-b*f)/delta
        y = (a*f-d*c)/delta
        print str('%.3f' % x+0) + " " + str('%.3f' % y+0)
        #print "%.3f %.3f" % (x,y)
    except:
        break

Submission status: Wrong Answer

Solution code:
while True:
    try:
        a,b,c,d,e,f = map(float,raw_input().split())
        x = 0.; y = 0.
        delta =a*e-b*d
        x = (e*c-b*f)/delta
        y = (a*f-d*c)/delta
        print str('%.3f' % x) + " " + str('%.3f' % y)
        #print "%.3f %.3f" % (x,y)
    except:
        break

Submission status: Wrong Answer

Solution code:
while True:
    try:
        a,b,c,d,e,f = map(float,raw_input().split())
        x = 0.; y = 0.
        delta =a*e-b*d
        x = (e*c-b*f)/delta
        y = (a*f-d*c)/delta
        #print str('%.3f' % x) + " " + str('%.3f' % y)
        print "%.3f %.3f" % (x,y)
    except:
        break

Submission status: Wrong Answer

Solution code:
while True:
    try:
        a,b,c,d,e,f = map(float,raw_input().split())
        x = 0.; y = 0.
        delta =abs(a*e-b*d)
        x = (e*c-b*f)/delta
        y = (a*f-d*c)/delta
        #print str('%.3f' % x) + " " + str('%.3f' % y)
        print "%.3f %.3f" % (x,y)
    except:
        break

Submission status: Wrong Answer

Solution code:
#! /usr/bin/python3

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

Submission status: Wrong Answer

Solution code:
# coding: UTF-8
num = map(float,raw_input().split())
x = (num[2]*num[4] - num[1]*num[5]) / (num[0]*num[4] - num[1]*num[3])
y = (num[5]*num[0]-num[2]*num[3]) / (num[0]*num[4]-num[3]*num[1])

print "%0.3f %0.3f"%(x,y)

Submission status: Wrong Answer

Solution code:
import sys
for line in sys.stdin.readlines():
    num = map(float, line.strip().split())
    x = (num[2]*num[4] - num[1]*num[5]) / (num[0]*num[4] - num[1]*num[3])
    y = (num[5]*num[0]-num[2]*num[3]) / (num[0]*num[4]-num[3]*num[1])
    print "%0.3f %0.3f"%(x,y)

Submission status: Wrong Answer

Solution code:
import sys
out=[]
for line in sys.stdin.readlines():
    num = map(float, line.strip().split())
    x = (num[2]*num[4] - num[1]*num[5]) / (num[0]*num[4] - num[1]*num[3])
    y = (num[5]*num[0] - num[2]*num[3]) / (num[0]*num[4] - num[3]*num[1])
    out.append( "%.3f %.3f"%(x,y))
for i in xrange(len(out)):
    print out[i]

Submission status: Wrong Answer

Solution code:
import sys
out=[]
for line in sys.stdin.readlines():
    num = map(float, line.strip().split())
    x = (num[2]*num[4] - num[1]*num[5]) / (num[0]*num[4] - num[1]*num[3])
    y = (num[5]*num[0] - num[2]*num[3]) / (num[0]*num[4] - num[3]*num[1])
    out.append( "%.3f %.3f"%(round(x,3),round(y,3)))
for i in xrange(len(out)):
    print out[i]

Submission status: Wrong Answer

Solution code:
import sys

for line in sys.stdin:
    (a, b, c, d, e, f) = [float(i) for i in line.split()]
    det = a * e - b * d
    x = (e * c - b * f) / det
    y = (-d * c + a * f) / det
    print(x, y)

Submission status: Wrong Answer

Solution code:
import sys

for line in sys.stdin:
    (a, b, c, d, e, f) = [float(i) for i in line.split()]
    det = a * e - b * d
    x = (e * c - b * f) / det
    y = (-d * c + a * f) / det
    print("%0.3f %0.3f" % (x, y))

Submission status: Wrong Answer

Solution code:
while True:
    try:
        a,b,c,d,e,f = map(float,input().split(' '))
        print('{} {}'.format(round((c*e-b*c)/(a*e-b*d),3),round((c*d-a*f)/(b*d-a*e),3)))
    except:
        break

Submission status: Wrong Answer

Solution code:
while True:
    try:
        a,b,c,d,e,f = map(float,input().split(' '))
        print('{0:.3f} {1:.3f}'.format(round((c*e-b*f)/(a*e-b*d),3),round((c*d-a*f)/(b*d-a*e),3)))
    except:
        break

Submission status: Wrong Answer

Solution code:
while True:
    try:
        a,b,c,d,e,f = map(float,input().split(' '))
        print('{0:.3f} {1:.3f}'.format(round((c*e-b*f)/(a*e-b*d),3),round((a*f-c*d)/(a*e-b*d),3)))
    except:
        break

Submission status: Wrong Answer

Solution code:
#!/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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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 - d*c) / (a*e - b*d)
        print('{:.3f} {:.3f}'.format(abs(x), abs(y)))
    except:
        break

Submission status: Wrong Answer

Solution code:
# coding: utf-8
import sys

def _read():
    for i in sys.stdin:
        yield map(int, i.split())

for d in _read():
    [a,b,c,d,e,f] = map(int, d)
    dat = a * e - b * d
    x = (c * e - b * f) / dat
    y = (a * f - c * d) / dat

    print "%1.3f %1.3f" % (x, y)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

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

Submission status: Wrong Answer

Solution code:
# -*- 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, 3 ), round ( y, 3 ) ) )

Submission status: Wrong Answer

Solution code:
# -*- 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, 4 ), round ( y, 4 ) ) )

Submission status: Wrong Answer

Solution code:
while True:
    try:
        line=input()

    except:
        break

    a,b,c,d,e,f=map(int, line.strip().split())

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

    print(x,y)

Submission status: Wrong Answer

Solution code:
while True:
    try:
        line=input()

    except:
        break

    a,b,c,d,e,f=map(int, line.strip().split())

    z=a*e-b*d
    if z==0:
        break

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

    print(x,y)

Submission status: Wrong Answer

Solution code:
while True:
    try:
        line=input()

    except:
        break

    a,b,c,d,e,f=map(int, line.strip().split())

    z=a*e-b*d
    if z==0:
        break

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

    print(round(x,3),round(y,3))

Submission status: Wrong Answer

Solution code:
import math
while True:
    try:
        line=input()

    except:
        break

    a,b,c,d,e,f=map(int, line.strip().split())

    z=a*e-b*d
    if z==0:
        break

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

    print(round(x,3),round(y,3))

Submission status: Wrong Answer

Solution code:


while True:
    try:
        line=input()

    except:
        break

    a,b,c,d,e,f=map(int, line.strip().split())

    z=a*e-b*d
    if z==0:
        break

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

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

Submission status: Wrong Answer

Solution code:
while True:
    try:
        line=input()

    except:
        break

    a,b,c,d,e,f=map(int, line.strip().split())

   
    
    y=(c*d-f*a)/(b*d-a*e)
    x=(c*e-f*b)/(a*e-b*d)
    print('{:.3f} {:.3f}'.format(x,y))

Submission status: Wrong Answer

Solution code:
while True:
    try:
        line=input()

    except:
        break

    a,b,c,d,e,f=map(int, line.strip().split())

   
    
    y=(c*d-f*a)/(b*d-a*e)
    x=(c*e-f*b)/(a*e-b*d)
    
    print('{:.3f} {:.3f}'.format(x,y))

Submission status: Wrong Answer

Solution code:
while(True):
    try:
        list = [ float(x) for x in raw_input().split() ]
        x = (list[2]*list[4]-list[1]*list[5])/(list[0]*list[4]-list[1]*list[3])
        y = (list[0]*list[5]-list[2]*list[3])/(list[0]*list[4]-list[1]*list[3])
        
        print("%.3f %.3f" %(x, y))
        
    except EOFError:
        break

Submission status: Wrong Answer

Solution code:
import math
while(True):
    try:
        list = [ float(x) for x in raw_input().split() ]
        x = (list[2]*list[4]-list[1]*list[5])/(list[0]*list[4]-list[1]*list[3])
        y = (list[0]*list[5]-list[2]*list[3])/(list[0]*list[4]-list[1]*list[3])
        
        print("%.3f %.3f" %(x, y))
        
    except EOFError:
        break

Submission status: Wrong Answer

Solution code:
import math
while True:
    try:
        list = [ float(x) for x in raw_input().split() ]
        x = (list[2]*list[4]-list[1]*list[5])/(list[0]*list[4]-list[1]*list[3])
        y = (list[0]*list[5]-list[2]*list[3])/(list[0]*list[4]-list[1]*list[3])
        
        print("%.3f %.3f" %(x, y))
        
    except EOFError:
        break

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

while(True):
    try:
        list = [float(x) for x in raw_input().split() ]
        x = (list[2]*list[4]-list[1]*list[5])/(list[0]*list[4]-list[1]*list[3])
        y = (list[0]*list[5]-list[2]*list[3])/(list[0]*list[4]-list[1]*list[3])

        print("%.3f %.3f" %(x, y))

    except EOFError:
        break

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

while True:
    try:
        list = [float(x) for x in raw_input().split() ]
        x = (list[2]*list[4]-list[1]*list[5])/(list[0]*list[4]-list[1]*list[3])
        y = (list[0]*list[5]-list[2]*list[3])/(list[0]*list[4]-list[1]*list[3])

        print("%.3f %.3f" %(x, y))

    except EOFError:
        break