summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--solve.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/solve.cpp b/solve.cpp
index 98bc7b2..946b67f 100644
--- a/solve.cpp
+++ b/solve.cpp
@@ -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();