diff options
-rw-r--r-- | solve.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -4,6 +4,7 @@ #include <vector> #include <string> #include <bitset> +#include <algorithm> #include <cassert> @@ -244,13 +245,10 @@ ostream& operator<<(ostream &os,const Sudoku<N,BW,BH> &S){ int main(){ - const int N=15,BW=5,BH=3; - const string fname="eureka.txt"; - // const int N=9,BW=3,BH=3; - // const string fname="easy2.txt"; + // const int N=15,BW=5,BH=3; + const int N=9,BW=3,BH=3; - ifstream is(fname); - Sudoku<N,BW,BH> S(readfile(is)); + Sudoku<N,BW,BH> S(readfile(cin)); Sudoku<N,BW,BH> origS(S); auto solutions=S.solve(); |