[백준/Python] 19532번 : 수학은 비대면강의입니다
문제
https://www.acmicpc.net/problem/19532
풀이
주어진 문제 조건을 그대로 코드로 구현했다.
a, b, c, d, e, f = map(int, input().split())
is_done = False
for x in range(-999, 1000):
if is_done:
break
for y in range(-999, 1000):
if a*x + b*y == c and d*x + e*y == f:
print(x, y, sep=" ")
is_done = True
break