This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
【アルゴリズム】 | |
0. 読み込む。 | |
1. 1つの空マスに対して1~9の値候補を用意する。 | |
2. 横(行)を見て、並んでいる値をそのマスの候補から除く。 | |
3. 縦(列)を見て、並んでいる値をそのマスの候補から除く。 | |
4. ブロック(3×3)を見て、並んでいる値をそのマスの候補から除く。 | |
5. 残った候補をマスに入れる。 | |
6. 0.から5.を繰り返す。 |