1 条题解
-
0
#include<bits/stdc++.h> using namespace std; long long n,m,a[300][300],x,y,f[300][300]; int main() { cin>>n>>m>>x>>y; n++;m++;x++;y++; a[1][0]=1; f[x][y]=1; f[x-1][y-2]=1; f[x-1][y+2]=1; f[x+1][y-2]=1; f[x+1][y+2]=1; f[x+2][y-1]=1; f[x+2][y+1]=1; f[x-2][y-1]=1; f[x-2][y+1]=1; for(int i=1;i<=n;i++) for(int j=1;j<=m;j++) if(f[i][j]!=1) a[i][j]=a[i-1][j]+a[i][j-1]; cout<<a[n][m]; return 0; }
- 1
信息
- ID
- 29
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 2
- 标签
- (无)
- 递交数
- 39
- 已通过
- 26
- 上传者