标签:include using pac iostream main out clu std ios
#include<iostream>
using namespace std;
//3361
int a[30000000];
int main(){
int N = 30;
a[1] = a[2] = a[3] = 1;
for(int i = 4;i <= N;i++){
a[i] = (a[i - 1] +a[i - 2] + a[i - 3]);
cout << a[i - 1] << " " << a[i - 2] << " " << a[i - 3] << endl;
}
cout << a[N] << endl;
}
标签:include using pac iostream main out clu std ios
原文地址:https://www.cnblogs.com/luyuan-chen/p/11907818.html