We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 78a9ed9 + bd31c27 commit 70e7ac0Copy full SHA for 70e7ac0
C++/chapDFS.tex
@@ -923,7 +923,7 @@ \subsubsection{代码}
923
return false;
924
for (i = 3 * (x / 3); i < 3 * (x / 3 + 1); i++)
925
for (j = 3 * (y / 3); j < 3 * (y / 3 + 1); j++)
926
- if (i != x && j != y && board[i][j] == board[x][y])
+ if ((i != x || j != y) && board[i][j] == board[x][y])
927
928
return true;
929
}
0 commit comments