藍橋——格子走法

題目: 代碼 // test.cpp: 定義控制檯應用程序的入口點。 // #include "stdafx.h" #include<iostream> using namespace std; int f(int x, int y) { if (x == 3 || y == 4)return 1;//找出口 return f(x + 1, y) + f(x, y + 1);//
相關文章
相關標籤/搜索