The number of integer solutions of the equation | XY | + | x + y | = 1 is

The number of integer solutions of the equation | XY | + | x + y | = 1 is

From | XY | + | x + y | = 1, we know that
0≤|xy|≤1
So there is
0≤|x|·|y|≤1
X and y are integers
Therefore, X and y can only be taken from ± 1 and 0
When x = 0, y = ± 1
When x = 1, y = 0
When x = - 1, y = 0
Therefore, the equation has four sets of solutions