#include<stdio.h> int fib(int k); int main() { int n; scanf("%d", &n); printf("%d\n", fib(n)); return 0; } int fib(int k) { if(k == 1 || k == 2) return 1; else return fib(k-1) + fib(k-2); }
20
6765 递归调用了13529次