我们发现从(0,0)这个点向下走,向右走都可以走出"从我做起,振兴中华"
js
#include <iostream>
using namespace std;
int f(int x,int y)
{
if(x==3||y==4)return 1; //如果走到了边界,就返回1(代表是1种方案)
return f(x+1,y)+f(x,y+1);
}
int main()
{
cout<<f(0,0)<<endl;
return 0;
}
