更新了许多

This commit is contained in:
OhFengGO
2023-08-23 21:52:51 +08:00
parent 971a1d91d6
commit fc324f936b
197 changed files with 6500 additions and 0 deletions

View File

@ -0,0 +1,30 @@
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <cstring>
#include <cstdio>
#include <stack>
#include <ctime>
#include <cmath>
#include <queue>
typedef long long l;
typedef double d;
using namespace std;
int a,b,c,e;
int f(int n){
if(n==1){
return a;
}
if(n==2){
return b;
}
if(n==3){
return c;
}
return f(n-1)+f(n-2)+f(n-3);
}
int main(){
cin >>a>>b>>c>>e;
cout <<f(e);
return 0;
}