题解分享
题解分享简介
数列求值(结果填空) - 题解
```
#include<iostream>
#include<cstring>
#include<algorithm>
using namespace std;
typedef unsigned long long ull;
int main()
{
int a=1,b=1,c=1,d;
int x=2;
int len=20190321;
while(len--)
{
d=(a+b+c)%10000;//每次取模取后四位 防止溢出 (A+B)%10000=A%1000+B%10000
a=b;
b=c;
c=d;
}
cout<<d<<endl;
}
```
查看全文
0
0
1
1



