标签:des style blog http color os
1 #include<cstdio>
2 int n;long long mod=1e9+7,g[1000010];
3 int main()
4 {
5 scanf("%d",&n);g[1]=1;
6 for(int i=2;i<=n;i++)g[i]=(2*g[i-1]+g[i-2])%mod;
7 printf("%lld\n",g[n]);
8 }
[BZOJ2173]整数的lqp拆分,布布扣,bubuko.com
标签:des style blog http color os
原文地址:http://www.cnblogs.com/Trinkle/p/3851811.html