1
2
3
4
|
a,b,c,d,e,f=map(int,input().split())
for x in range(-999,1000):
for y in range(-999,1000):
if a*x+b*y==c and d*x+e*y==f :print(x,y) ;break
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
[백준] 19843 (0) | 2021.01.19 |
---|---|
[백준] 19563 (0) | 2021.01.19 |
[백준] 18795 (0) | 2021.01.19 |
[백준] 18406 (0) | 2021.01.19 |
[백준] 18312 (0) | 2021.01.19 |
댓글