别只发代码,要把思路讲清楚来哇
by bmqt @ 2021-08-20 20:46:50
我认为自己是输入错了
by 不慕放糖 @ 2021-08-20 20:53:02
因为我把cin>>改成scanf就re了
by 不慕放糖 @ 2021-08-20 20:55:46
@[不慕放糖](/user/544113) 是TLE还是WA
by little_cindy @ 2021-08-21 08:21:33
@[little_cindy](/user/357311) WA
by 不慕放糖 @ 2021-08-21 08:22:13
@[不慕放糖](/user/544113) 方向函数错了。
```cpp
int xx[4]={1,0,-1,0};
int yy[4]={0,1,0,1};
```
改为
```cpp
int xx[4]={1,0,-1,0};
int yy[4]={0,1,0,-1};
```
记住,方向函数永远等长
by little_cindy @ 2021-08-21 08:50:53
@[不慕放糖](/user/544113) 给个关注~
by little_cindy @ 2021-08-21 08:51:21
@[little_cindy](/user/357311) 谢谢大佬
by 不慕放糖 @ 2021-08-21 08:53:52