#include <stdio.h> int fun(int n) { if(n<=3) return 1; return fun(n-1)+fun(n-3); } int main() { printf("%d",fun(20)); return 0; }
觉得有用的话采纳一下哈