#include<bits/stdc++.h>
using namespace std;
int n,m,hn,hm;
long long dp[25][25];
bool b[25][25];
int main(){
cin>>n;
cin>>m;
cin>>hn;
cin>>hm;
b[hn+2][hm+1]=b[hn+1][hm+2]=b[hn-1][hm-2]=b[hn-2][hm-1]=b[hn+1][hm-2]=b[hn+2][hm-1]=b[hn-1][hm+2]=b[hn-2][hm+1]=b[hn][hm]=1;
dp[0][0]=1;
b[0][0]=1;
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
if(!b[i][j]){
if(j==0){
dp[i][j]=dp[i-1][j];
}
}
else if(i==0){
{
dp[i][j]=dp[i][j-1];
}
}
else{
dp[i][j]=dp[i-1][j]+dp[i][j-1];
}
}
}
printf("%11d\n",dp[n][m]);
return 0;
}
大佬求修改QWQ
输出总为0。