#include<iostream>
using namespace std;
int a[1000], b[1000], c[1000], d[1000];
int main()
{
a[1] = b[1] = c[1] = 1;
int g = 0;
int len = 1;
for (long long j = 4; j <= 20190324; ++j) {
for (int i = 1; i <= len; i++) {
d[i] = a[i] + b[i] + c[i] + g;
g = d[i] / 10;
d[i] = d[i] % 10;
if (g) { len++; }
}
for (int i = 1; i <= len; i++) {
a[i] = b[i];
b[i] = c[i];
c[i] = d[i];
}
}
for (int i = 4; i; i--) {
cout << d[i];
}
return 0;
}
大佬帮忙看看此代码为什么没有输出?