AC码
```
#include <bits/stdc++.h>
using namespace std;
long long a,b,n,m,x[23][23],ma[23][23];
void work(long long x,long long y){
ma[x][y]=1;
ma[x-1][y-2]=1;
ma[x-2][y-1]=1;
ma[x-2][y+1]=1;
ma[x-1][y+2]=1;
ma[x+1][y-2]=1;
ma[x+2][y-1]=1;
ma[x+2][y+1]=1;
ma[x+1][y+2]=1;
}
int main(){
scanf("%lld %lld %lld %lld",&n,&m,&a,&b);
a++;
b++;
n++;
m++;
work(a,b);
x[1][1]=1;
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
if(i==1&&j==1)continue;
if(ma[i][j]==0)x[i][j]=x[i-1][j]+x[i][j-1];
}
}
printf("%lld",x[n][m]);
return 0;
}
```
by lorry26 @ 2023-07-05 08:13:28
@[lorry26](/user/931262)
呃呃,这不是 @[orzdevinwang](/user/180242)
的题解码……………………
不过还是十分感谢
by yyb18660335329 @ 2023-07-05 08:56:39
@[yyb18660335329](/user/749958) 这题是 dp 啊,搜索行不通的吧(?)
by fish_love_cat @ 2023-07-05 08:59:27
@[fish_love_cat](/user/754021)
emm……
好吧,我好像傻了
by yyb18660335329 @ 2023-07-05 09:03:09
@[yyb18660335329](/user/749958) 老师给的码
by lorry26 @ 2023-07-05 11:16:20
@[lorry26](/user/931262) 6,快看看你老师是不是棕了awa
by yyb18660335329 @ 2023-07-17 13:32:38