@[XXCCVV](/user/638832)
```
a.x=a.y=1;
```
这一行的问题,起始位置可能不是(1,1)
by OutsideR_ @ 2022-07-16 14:13:32
@[XXCCVV](/user/638832)
将
```
a.x=a.y=1;
a.step=0;
vis[1][1]=1;
```
修改为
```
a.x=x1;
a.y=y1;
a.step=0;
vis[x1][y1]=1;
```
就可以了
by OutsideR_ @ 2022-07-16 14:15:13
@[XXCCVV](/user/638832) 起始位置是(x1,y1)不是(1,1)
by OutsideR_ @ 2022-07-16 14:16:38
@[Cyc曹](/user/288506) 谢谢大佬
by XXCCVV @ 2022-07-16 15:40:58