题目:2067. 走方格
#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
const int N=1e5+10;
LL a[35][35];
int main(){
int n,m;
scanf("%d%d",&n,&m);
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
if(i==1&&j==1)
a[i][j]=1;
else if(i%2==0&&j%2==0)
continue;
else
a[i][j]=a[i-1][j]+a[i][j-1];
}
}
printf("%lld",a[n][m]);
return 0;
}