80求调

P1434 [SHOI2002] 滑雪

xx>0 && xx<=r && yy>0 && yy<=c 这里改成 xx>=0 && xx<=r && yy>=0 && yy<=c
by KEZEQIAN @ 2024-01-26 21:59:12


@[KEZEQIAN](/user/1161911) 还是80
by DKsniper @ 2024-02-01 20:17:44


@[DKsniper](/user/799337) public static void dfs(int x,int y) { for(int i=0;i<4;i++) { int dx=a[i]+x; int dy=b[i]+y; if((dx>=0 && dx<=n && dy>=0 && dy<=m ) && map[dx][dy]<map[x][y] && s[dx][dy]<s[x][y]+1) { s[dx][dy]=s[x][y]+1; dfs(dx, dy); } }
by KEZEQIAN @ 2024-02-02 00:16:24


@[DKsniper](/user/799337) 超时还是wa
by KEZEQIAN @ 2024-02-02 00:18:14


@[KEZEQIAN](/user/1161911) WA
by DKsniper @ 2024-02-02 21:19:49


@[DKsniper](/user/799337) 偏移数组换成两个一维
by KEZEQIAN @ 2024-02-02 21:59:25


|