Commit 4795667d authored by royus's avatar royus

fix

parent b683426c
No preview for this file type
/* solver.c */ /* solver.c */
/* Last Change: 2019/07/25 (Thu) 14:15:35. */ /* Last Change: 2019/07/25 (Thu) 14:39:28. */
#include<stdio.h> #include<stdio.h>
#include<limits.h> #include<limits.h>
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include"io.h" #include"io.h"
/* #include<string.h> */ /* #include<string.h> */
/* #include<math.h> */ /* #include<math.h> */
#define DEBUG 0 #define DEBUG 1
#define ABS(a) ((a) < 0 ? - (a) : (a)) #define ABS(a) ((a) < 0 ? - (a) : (a))
#define MAX(a, b) ((a) > (b) ? (a) : (b)) #define MAX(a, b) ((a) > (b) ? (a) : (b))
...@@ -341,7 +341,7 @@ short int available(short int nowx,short int nowy, short int start){ //return 1 ...@@ -341,7 +341,7 @@ short int available(short int nowx,short int nowy, short int start){ //return 1
break; break;
} }
if(avail[nowy][nowx]==2) if(avail[nowy][nowx]==2)
avail[nowy][nowx]=1; avail[nowy][nowx]=0;
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment