Skip to content

Baekjoon 19532

1. Problem

문제 확인하기

2. Solution

1. Python (memory: 31256KB, time: 40ms)

a, b, c, d, e, f = map(int, input().split())
x = (c*e - b*f) // (a*e - b*d)
y = (c*d - a*f) // (b*d - a*e)
print(x, y)