题解 | #小乐乐走台阶#
小乐乐走台阶
https://www.nowcoder.com/practice/ebf04de0e02c486099d78b7c3aaec255
#include <stdio.h> int f(int a) { if(a<4) return a; else return f(a-1)+f(a-2); } int main() { int a; scanf("%d",&a); int ret=f(a); printf("%d",ret); return 0; }