阿牛的EOF牛肉串

#include
using namespace std;
long long s0,s1,s2,s3;
int main()
{
int i,n;
while(cin>>n)
{
s0=3; s1=1;
s2=1; s3=1;
for(i=2; i<=n; i++)
{
s2=s1*2;
s3=s1=s0;
s0=s1+s2+s3;
}
cout< }
return 0;
}
【阿牛的EOF牛肉串】转载于:https://www.cnblogs.com/NYNU-ACM/p/4658268.html

    推荐阅读