求助,样例能过,提交全WA

P1746 离开中山路

@[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


|