@[CKAO](/user/583126) 您判越界的时候写的是
```cpp
if(x>n||x<0||y<0||y>m)
```
实际上应该是
```cpp
if(x>n||x<1||y<1||y>m)
```
by uniqueharry @ 2022-02-28 20:49:27
@[CKAO](/user/583126)
难道不应该越界判在前面吗?
by Super_Supper @ 2022-02-28 21:34:35
@[uniqueharry](/user/385093) 已ac,感谢
by CKAO @ 2022-02-28 21:36:49