Ta co :(x+y)^2=(x-1)(y-1)
X^2+2xy+y^2=xy-x-y+1
2x^2+2xy+2y^2+x+y-2=0
(x^2+2xy+y^2)+(x^2+2x+1)+(y^2+2y+1)=4
(x+y)^2+(x+1)^2+(y+1)^2=4
Do x;y€Z nen (x+y)^2;(x+1)^2;(y+1)^2 la cac so chinh phuong
Suy ra co 3 truong hop
°(x+y)^2=0;(x+1)^2=0;(y+1)^2=4
°(x+y)^2=0;(x+1)^2=4;(y+1)^2=0
°(x+y)^2=4;(x+1)^2=0;(y+1)^2=0
Sau do tu giai ra tim x;y