-
Notifications
You must be signed in to change notification settings - Fork 965
Expand file tree
/
Copy pathmain.cpp
More file actions
31 lines (25 loc) · 736 Bytes
/
main.cpp
File metadata and controls
31 lines (25 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "solution.h"
#include <iostream>
using namespace std;
int main()
{
Solution s;
vector<std::vector<char>> board = {
{'5','3','.','.','7','.','.','.','.'},
{'6','.','.','1','9','5','.','.','.'},
{'.','9','8','.','.','.','.','6','.'},
{'8','.','.','.','6','.','.','.','3'},
{'4','.','.','8','.','3','.','.','1'},
{'7','.','.','.','2','.','.','.','6'},
{'.','6','.','.','.','.','2','8','.'},
{'.','.','.','4','1','9','.','.','5'},
{'.','.','.','.','8','.','.','7','9'}
};
s.solveSudoku(board);
for (const auto &v : board) {
for (auto c : v)
std::cout << c << " ";
cout << std::endl;
}
return 0;
}