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: import sys
for line in sys.stdin:
    a,b,c,d,e,f = map(float, line.split())
    print((c*e-b*f)/(a*e-b*d), (a*f-c*d)/(a*e-b*d))

Python: x = int(0)
y = int(0)

while 1:
	try:
		data = raw_input().split()

		a = int(data[0])
		b = int(data[1])
		c = int(data[2])
		d = int(data[3])
		e = int(data[4])
		f = int(data[5])

		# a*x + b*y = c
		# d*x + e*y = f

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

		print(format(x, '.3f'))
		print(format(y, '.3f'))

	except:
		break

Python: # -*- coding:utf-8 -*-
 
def main():
    while True:
        try:
            IN=input()
            val=IN.split(" ")
            a=float(val[0])
            b=float(val[1])
            c=float(val[2])
            d=float(val[3])
            e=float(val[4])
            f=float(val[5])

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

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

Python: import sys


def calc(a, b, c, d, e, f):

    a2 = a * d
    b2 = b * d
    c2 = c * d

    d2 = d * a
    e2 = e * a
    f2 = f * a

    t1 = c2 - f2
    t2 = b2 - e2

    y = t1 / t2
    x = (c - b * y) / a

    return x, y


for line in sys.stdin:
    datas =line.split()
    if (len(datas)):

        li = list(map(int, datas)) 
        a = li[0]
        b = li[1]
        c = li[2]
        d = li[3]
        e = li[4]
        f = li[5]

        x, y = calc(a, b, c, d, e, f)

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

    else:
        break

Python: 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

Python: import sys

lines = sys.stdin.readlines()
for line in lines:
    a = list(map(float, line.split(" ")))
    tmp = a[0]
    for i in range(0, 3):
        a[i] = a[i] * a[3]
    for i in range(3, 6):
        a[i] = a[i] * tmp
    y = (a[2] - a[5]) / (a[1] - a[4])
    x = (a[2] - a[1] * y) / a[0]
    print("{0:0.3f} {1:0.3f}".format(x, y))

Python: 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 = [int(x) for x in input().split()]
        x = round((b*f - c*e)/(b*d - a*e), 3) + 0
        y = round((a*f - c*d)/(a*e - b*d), 3) + 0
        print(format(x, ".3f"), format(y, ".3f"))
    except EOFError:
        break

Python: import itertools, sys

d = {i: 0 for i in range(51)}
for i in itertools.combinations_with_replacement(range(0,10), 4):
    if i[0] == i[1] == i[2] == i[3]:
        continue
    d[sum(i)] += 1
for i in map(int, sys.stdin):
    if i / 4 == 0:
        print(d[i]*4+1)
    else:
        print(d[i]*4)

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

Python: import sys

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

Python: # Aizu Problem 0004: Simultaneous Equation
#
import sys, math, os

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


for line in sys.stdin:
    a, b, c, d, e, f = [int(_) for _ in line.split()]
    det = a * e - b * d
    det1 = c * e - b * f
    det2 = a * f - c * d
    x = round(det1 / det, 3)
    y = round(det2 / det, 3)
    #if -.001 < x < 0:
    #    x = 0
    print("%.3f %.3f" % (x, y))

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

Python: import sys
for line in sys.stdin.readlines():
    a, b, c, d, e, f=map(float,line.split())
    k=(a*e)-(b*d)
    xval=(c*e)-(b*f)
    yval=(a*f)-(c*d)
    g=xval/k
    h=yval/k
    if(xval==0):
        g=0
    if(yval==0):
        h=0
    print("%.3f %.3f"%(g,h))

Python: 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))

Python: # coding: utf-8
# Your code here!

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

Python: # -*- coding:utf-8 -*-
 
def main():
    while True:
        try:
            IN=input()
            val=IN.split(" ")
        except:
            break
        a=float(val[0])
        b=float(val[1])
        c=float(val[2])
        d=float(val[3])
        e=float(val[4])
        f=float(val[5])

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

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

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

Python: import sys
import numpy as np

while 1:
    line = sys.stdin.readline()
    if line is ' ':
        break
    a = list(map(float, input().split()))
    A = np.array([[a[0],a[1]],
                  [a[3],a[4]]])
    b = np.array([a[2],a[5]])
    x = np.linalg.solve(A, b)
    print(x)

Python: from decimal import Decimal

def main():
    input_line = raw_input()
    x1 = int(input_line.split(' ')[0])
    y1 = int(input_line.split(' ')[1])
    p = int(input_line.split(' ')[2])
    x2 = int(input_line.split(' ')[3])
    y2 = int(input_line.split(' ')[4])
    q = int(input_line.split(' ')[5])
    multiplicand1, multiplicand2 = calculate1(x1, x2)
    after_y1, after_y2, after_p, after_q = calculate2(y1, y2, p, q, multiplicand1, multiplicand2)
    calculate3(after_y1, after_y2, after_p, after_q, x1, y1, p)
    
def calculate1(x1, x2):
    if (x1 >= 0 and x2 >= 0) or (x1 < 0 and x2 < 0):
        multiplicand1 = -x2
        multiplicand2 = x1
        return multiplicand1, multiplicand2
    else:
        multiplicand1 = abs(x2)
        multiplicand2 = abs(x1)
        return multiplicand1, multiplicand2
    
def calculate2(y1, y2, p, q, multiplicand1, multiplicand2):
    after_y1 = y1 * multiplicand1
    after_y2 = y2 * multiplicand2
    after_p = p * multiplicand1
    after_q = q * multiplicand2
    return after_y1, after_y2, after_p, after_q

def calculate3(after_y1, after_y2, after_p, after_q, x1, y1, p):
    y = Decimal(after_p + after_q) / Decimal(after_y1 + after_y2)
    x = Decimal(p - y1 * y) / Decimal(x1)
    print('%.3f %.3f' % (x, y))
    
if __name__ == '__main__':
    main()