摘要:
#include <iostream> #include <cstdio> using namespace std; int fun(int n) { if(n==1) return 1; if(n==2) return 2; if(n==3) return 4; if(n>2) return fu 阅读全文
posted @ 2020-08-28 23:39
py佐料
阅读(265)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <cstdio> using namespace std; int fun(int n) { if(n==1) return 1; if(n==2) return 2; if(n>2) return 2*fun(n-1)+fun(n-2); 阅读全文
posted @ 2020-08-28 23:32
py佐料
阅读(212)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <cstdio> using namespace std; int fib(int n) { if(n==1 || n==2) return 1; else return fib(n-1)+fib(n-2); } int main() { i 阅读全文
posted @ 2020-08-28 23:27
py佐料
阅读(92)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <cstdio> using namespace std; int d[25][25],n,m,cx,cy; long long dp[25][25]; //d数组用来记录是不是控制点(“马点”),dp数组用来记录路径数 int dir[8] 阅读全文
posted @ 2020-08-28 11:26
py佐料
阅读(468)
评论(0)
推荐(0)